Skip to content

Commit

Permalink
adding PPAs disables the sources repo by default (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulXiCao authored and clefebvre committed Apr 30, 2018
1 parent d795765 commit a4ecc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintSources/mintSources.py
Expand Up @@ -1072,15 +1072,15 @@ def add_ppa(self, widget):
# Add the PPA in sources.list.d
with open(file, "w") as text_file:
text_file.write("%s\n" % deb_line)
text_file.write("%s\n" % debsrc_line)
text_file.write("%s\n" % "# "+debsrc_line)

# Add the package line in the UI
repository = Repository(self, deb_line, file, True)
self.ppas.append(repository)
tree_iter = self._ppa_model.append((repository, repository.selected, repository.get_ppa_name()))

# Add the source line in the UI
repository = Repository(self, debsrc_line, file, True)
repository = Repository(self, debsrc_line, file, False)
self.ppas.append(repository)
tree_iter = self._ppa_model.append((repository, repository.selected, repository.get_ppa_name()))

Expand Down

0 comments on commit a4ecc55

Please sign in to comment.