提交 0d68d0ad 编写于 作者: J James Troup

Update filename slicing for .dak rename.

上级 2bd5ea02
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.
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册