summaryrefslogtreecommitdiff
path: root/autoimport.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-02-22 07:24:05 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-02-22 07:24:39 +0100
commit573208a47846d961f29539b9289d30f673e276e9 (patch)
tree01bac06fd70e9782a2002f9dc42210565c82005b /autoimport.py
parent12c89ebaf67b5a55ea23af3ed47038968870f309 (diff)
downloaddebian-dedup-573208a47846d961f29539b9289d30f673e276e9.tar.gz
autoimport: first wait on the import
Otherwise the import zombifies and curl blocks.
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 ec64761..6ce7146 100755
--- a/autoimport.py
+++ b/autoimport.py
@@ -28,10 +28,10 @@ def main():
print("importing %s" % name)
dl = subprocess.Popen(["curl", "-s", pkgurl], stdout=subprocess.PIPE)
imp = subprocess.Popen("./importpkg.py", stdin=dl.stdout)
- if dl.wait():
- print("curl failed")
if imp.wait():
print("import failed")
+ if dl.wait():
+ print("curl failed")
cur.execute("PRAGMA foreign_keys=1;")
cur.executemany("DELETE FROM package WHERE package = ?;",