summaryrefslogtreecommitdiff
path: root/autoimport.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-07-22 08:56:42 +0200
committerHelmut Grohne <helmut@subdivi.de>2014-07-22 08:56:42 +0200
commit04597f25729740406775a3dff528c9774c84efd5 (patch)
treefe905fc94afbdcfad60d5aaf88886a1f10f92a8c /autoimport.py
parentba9ae116e0bbb25e2df327ba48c82472ccfa2690 (diff)
parentd48c3c208ee6ba54225b3eb68ce5c9f3c894bfa4 (diff)
downloaddebian-dedup-04597f25729740406775a3dff528c9774c84efd5.tar.gz
Merge branch master into multiarch
Resolve accumulated conflicts. In particular webapp.py gained a few non-trivial ones, such as changes in InternalRedirect or usage of contextlib.closing. Conflicts: schema.sql webapp.py
Diffstat (limited to 'autoimport.py')
-rwxr-xr-xautoimport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoimport.py b/autoimport.py
index c7eb2f5..5c2c9be 100755
--- a/autoimport.py
+++ b/autoimport.py
@@ -61,7 +61,7 @@ def process_pkg(key, pkgdict, outpath):
importcmd = ["python", "importpkg.py"]
if "sha256hash" in pkgdict:
importcmd.extend(["-H", pkgdict["sha256hash"]])
- if filename.startswith("http://"):
+ if filename.startswith(("http://", "https://", "ftp://", "file://")):
with open(outpath, "w") as outp:
dl = subprocess.Popen(["curl", "-s", filename],
stdout=subprocess.PIPE, close_fds=True)
@@ -96,7 +96,7 @@ def main():
pkgs = {}
for d in args:
print("processing %s" % d)
- if d.startswith("http://"):
+ if d.startswith(("http://", "https://", "ftp://", "file://")):
process_http(pkgs, d)
elif os.path.isdir(d):
process_dir(pkgs, d)