From: James Troup Date: Sun, 11 Jun 2006 05:18:27 +0000 (+0100) Subject: Update filename slicing for .dak rename. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d68d0ad03934a0a686b8f001df841a3bebd1fa7;p=dak Update filename slicing for .dak rename. --- diff --git a/ChangeLog b/ChangeLog index e8a07c1b..7c9db65c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-06-11 James Troup + * 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. diff --git a/daklib/utils.py b/daklib/utils.py index 83b507a8..527f76b0 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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"