]> git.decadent.org.uk Git - dak.git/blobdiff - dak/generate_index_diffs.py
And also catch double-sign-edit-failure-sign-whatever files
[dak.git] / dak / generate_index_diffs.py
index 6968c33605585e3b210aed874f22ae0fe84a8467..e3699a461515f4f1ba12b111d72833e400493c7b 100755 (executable)
@@ -369,9 +369,10 @@ def main():
                         if not re_includeinpdiff.match(entry):
                             #print "EXCLUDING %s" % (entry)
                             continue
-                        processfile= os.path.join(workpath, entry)
+                        (fname, fext) = os.path.splitext(entry)
+                        processfile=os.path.join(workpath, fname)
                         #print "Working: %s" % (processfile)
-                        storename="%s/%s_%s_%s" % (Options["TempDir"], suite, component, entry)
+                        storename="%s/%s_%s_%s" % (Options["TempDir"], suite, component, fname)
                         #print "Storefile: %s" % (storename)
                         genchanges(Options, processfile + ".diff", storename, processfile, maxdiffs)
         os.chdir(cwd)