]> err.no Git - dak/commitdiff
Update filename slicing for .dak rename.
authorJames Troup <james@nocrew.org>
Sun, 11 Jun 2006 05:18:27 +0000 (06:18 +0100)
committerJames Troup <james@nocrew.org>
Sun, 11 Jun 2006 05:18:27 +0000 (06:18 +0100)
ChangeLog
daklib/utils.py

index e8a07c1b4ca17c173906f0bdaea10824acdf37fc..7c9db65ceba808efc1d79f147371f300bd3dcbaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-06-11  James Troup  <james@nocrew.org>
 
+       * dak/daklib/utils.py (validate_changes_file_arg): update filename
+       slicing to cope with new .dak filenames.
+
        * dak/ls.py (main): add back 'heidi' as a valid argument for
        -f/--format as people are using it in scripts and breaking that
        without warning seems rude.
index 83b507a89062504b43840c51d257ea908757d82a..527f76b0b585cb1b42754560de9d2f1923ba2185 100644 (file)
@@ -608,7 +608,7 @@ argument:
 
     orig_filename = filename
     if filename.endswith(".dak"):
-        filename = filename[:-6]+".changes"
+        filename = filename[:-4]+".changes"
 
     if not filename.endswith(".changes"):
         error = "invalid file type; not a changes file"