]> git.decadent.org.uk Git - dak.git/commitdiff
queue_install
authorJoerg Jaspert <joerg@debian.org>
Wed, 16 Dec 2009 22:41:43 +0000 (23:41 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 16 Dec 2009 22:41:43 +0000 (23:41 +0100)
make autobyhand work again

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue_install.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b4b0ee3..627df43
@@ -166,7 +166,7 @@ def is_autobyhand(u):
 
 def do_autobyhand(u, summary, short_summary, chg, session):
     print "Attempting AUTOBYHAND."
 
 def do_autobyhand(u, summary, short_summary, chg, session):
     print "Attempting AUTOBYHAND."
-    byhandleft = True
+    byhandleft = False
     for f, entry in u.pkg.files.items():
         byhandfile = f
 
     for f, entry in u.pkg.files.items():
         byhandfile = f
 
@@ -188,7 +188,7 @@ def do_autobyhand(u, summary, short_summary, chg, session):
 
         if result == 0:
             os.unlink(byhandfile)
 
         if result == 0:
             os.unlink(byhandfile)
-            del entry
+            del u.pkg.files[f]
         else:
             print "Error processing %s, left as byhand." % (f)
             byhandleft = True
         else:
             print "Error processing %s, left as byhand." % (f)
             byhandleft = True