From 0d68d0ad03934a0a686b8f001df841a3bebd1fa7 Mon Sep 17 00:00:00 2001 From: James Troup Date: Sun, 11 Jun 2006 06:18:27 +0100 Subject: [PATCH] Update filename slicing for .dak rename. --- ChangeLog | 3 +++ daklib/utils.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- 2.39.5