]> git.decadent.org.uk Git - dak.git/blobdiff - dak/new_security_install.py
don't try and delete already moved changes files
[dak.git] / dak / new_security_install.py
index ce6543d78590e57f927bd74e81eaffa04fadef1d..856428e013cc5ea0f219f4cc9fcf6dcaa9288782 100755 (executable)
@@ -282,7 +282,9 @@ def actually_upload(changes_files):
         print "Moving files to UploadQueue"
         for filename in uploads[uri]:
             utils.copy(filename, Cnf["Dir::Upload"])
-            remove_from_buildd(suites, filename)
+            # .changes files have already been moved to queue/done by p-a
+            if not filename.endswith('.changes'):
+                remove_from_buildd(suites, filename)
         #spawn("lftp -c 'open %s; cd %s; put %s'" % (host, path, file_list))
 
     if not Options["No-Action"]: