]> git.decadent.org.uk Git - dak.git/commitdiff
Don't remove files we previously generated
authorMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 16:17:19 +0000 (16:17 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 16:17:19 +0000 (16:17 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/show_new.py

index 4d7e75b75c991b242773080d5585ad5dc934428f..f50b7853def339f89466fa63da9a1049aebbd590 100755 (executable)
@@ -174,6 +174,7 @@ def do_pkg(changes_file):
     # Have we already processed this?
     if os.path.exists(htmlfile) and \
         os.stat(htmlfile).st_mtime > os.stat(origchanges).st_mtime:
+            sources.add(htmlname)
             session.close()
             return
 
@@ -186,7 +187,6 @@ def do_pkg(changes_file):
     changes = u.pkg.changes
     sources.add(htmlname)
 
-
     for deb_filename, f in files.items():
         if deb_filename.endswith(".udeb") or deb_filename.endswith(".deb"):
             u.binary_file_checks(deb_filename, session)