Thu, 11 Dec 2008 21:19:26 -0500
Fix crasher bug when extracting empty archives.
NEWS | file | annotate | diff | comparison | revisions | |
scripts/dtrx | file | annotate | diff | comparison | revisions | |
tests/tests.yml | file | annotate | diff | comparison | revisions |
--- a/NEWS Thu Nov 06 21:33:15 2008 -0500 +++ b/NEWS Thu Dec 11 21:19:26 2008 -0500 @@ -11,6 +11,12 @@ * Interactive prompts are wrapped much more cleanly. +Bug fixes +~~~~~~~~~ + + * Fix a bug where dtrx would crash when extracting an archive with no + files inside it. + Version 6.3 -----------
--- a/scripts/dtrx Thu Nov 06 21:33:15 2008 -0500 +++ b/scripts/dtrx Thu Dec 11 21:19:26 2008 -0500 @@ -638,6 +638,8 @@ class EmptyHandler(object): + target = '' + def can_handle(contents, options): return contents == EMPTY can_handle = staticmethod(can_handle)
--- a/tests/tests.yml Thu Nov 06 21:33:15 2008 -0500 +++ b/tests/tests.yml Thu Dec 11 21:19:26 2008 -0500 @@ -646,3 +646,12 @@ input: | h o + +- name: extracting empty archive + filenames: test-empty.tar.bz2 + baseline: "" + +- name: listing empty archive + filenames: test-empty.tar.bz2 + options: -l + antigrep: .