projects
/
~helmut
/
debian-dedup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12c89eb
)
autoimport: first wait on the import
author
Helmut Grohne
<helmut@subdivi.de>
Fri, 22 Feb 2013 06:24:05 +0000
(07:24 +0100)
committer
Helmut Grohne
<helmut@subdivi.de>
Fri, 22 Feb 2013 06:24:39 +0000
(07:24 +0100)
Otherwise the import zombifies and curl blocks.
autoimport.py
patch
|
blob
|
history
diff --git
a/autoimport.py
b/autoimport.py
index
ec64761
..
6ce7146
100755
(executable)
--- 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 = ?;",