Skip to content

Commit

Permalink
Merge pull request #93 from DarkPlayer/httpfix
Browse files Browse the repository at this point in the history
Allow adding http repositories with line expansion
  • Loading branch information
clefebvre committed Apr 20, 2017
2 parents 0494e57 + 6abeb20 commit 1eca601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/lib/linuxmint/mintSources/mintSources.py
Expand Up @@ -138,7 +138,7 @@ def add_repository_via_cli(line, codename, forceYes, use_ppas):
with open(file, "w") as text_file:
text_file.write("%s\n" % deb_line)
text_file.write("%s\n" % debsrc_line)
elif line.startswith("deb "):
elif line.startswith("deb ") | line.startswith("http"):
with open("/etc/apt/sources.list.d/additional-repositories.list", "a") as text_file:
text_file.write("%s\n" % expand_http_line(line, codename))

Expand Down

0 comments on commit 1eca601

Please sign in to comment.