changelog
- Sun, 12 Apr 2009 11:22:42 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 12 Apr 2009 11:22:42 -0400] rev 107
- Support multiple greps and antigreps per test.
I thought I would need this for a new test I was writing. It turned out I
ended up implementing different tests (and features), but this could come
in handy for later so I'm keeping it.
- Sun, 12 Apr 2009 11:21:51 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 12 Apr 2009 11:21:51 -0400] rev 106
- Start printing results ASAP with -l or -t.
Doing -l on a large archive was painful because dtrx would wait until it
had all the listings before it displayed any. It did this to make sure
that the listing would be successful.
On reconsidering, though, I think it's really unlikely that there'll be a
case where a lister process provides *some* good output for a given file in
the wrong format. So, now -l will try to get one good line out of the
lister. If it gets that, then it will immediately start displaying results
as they come in. On the off chance that it detects an error later on, it
will display an error about that, and then try again with a different
extractor if appropriate.
- Thu, 02 Apr 2009 22:31:07 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 02 Apr 2009 22:31:07 -0400] rev 105
- Make sure prompts with filenames don't break mid-filename.
- Wed, 25 Mar 2009 22:58:57 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Wed, 25 Mar 2009 22:58:57 -0400] rev 104
- Added one entry options a while ago.
- Wed, 25 Mar 2009 22:54:13 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Wed, 25 Mar 2009 22:54:13 -0400] rev 103
- Reword one entry prompt; wrap prompt choices; better term size detection.
- Wed, 25 Mar 2009 21:34:55 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Wed, 25 Mar 2009 21:34:55 -0400] rev 102
- add missing test archive
- Thu, 11 Dec 2008 21:37:03 -0500
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 11 Dec 2008 21:37:03 -0500] rev 101
- Release dtrx 6.4
- Thu, 11 Dec 2008 21:19:26 -0500
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 11 Dec 2008 21:19:26 -0500] rev 100
- Fix crasher bug when extracting empty archives.
- Thu, 06 Nov 2008 21:33:15 -0500
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 06 Nov 2008 21:33:15 -0500] rev 99
- Improve wrapping of interactive prompts.
Limit wrapping to the actual width of the terminal, and avoid wrapping the
filename.
- Thu, 06 Nov 2008 20:49:57 -0500
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 06 Nov 2008 20:49:57 -0500] rev 98
- Add support for LZMA magic detection.
- Sun, 19 Oct 2008 23:05:00 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 23:05:00 -0400] rev 97
- update sha1sum
- Sun, 19 Oct 2008 22:53:32 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 22:53:32 -0400] rev 96
- merge extractor contents bugfix
- Sun, 19 Oct 2008 22:50:47 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 22:50:47 -0400] rev 95
- Include the NEWS file in source distributions
- Sun, 19 Oct 2008 22:47:59 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 22:47:59 -0400] rev 94
- Avoid DeprecationWarning under Python 2.6. Part of the 6.3 release.
- Sun, 19 Oct 2008 22:42:20 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 22:42:20 -0400] rev 93
- Prepare for a 6.3 release
- Sun, 19 Oct 2008 22:20:50 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 19 Oct 2008 22:20:50 -0400] rev 92
- Add RAR support. Thanks to Peter Kelemen for the patch.
- Tue, 16 Sep 2008 21:51:59 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Tue, 16 Sep 2008 21:51:59 -0400] rev 91
- Make sure all extractors get self.contents defined.
self.contents was set in check_contents, which not every extractor class
needs to call. But every extractor needs to have it, since this is how we
print filenames with -v. So assign this in the extract method, which we're
guaranteed to call.
- Sat, 26 Jul 2008 13:02:53 -0400
- by Brett Smith <brett@brettcsmith.org> [Sat, 26 Jul 2008 13:02:53 -0400] rev 90
- Fix TODO merge conflicts, I hope.
- Sat, 26 Jul 2008 12:55:37 -0400
- by Brett Smith <brett@brettcsmith.org> [Sat, 26 Jul 2008 12:55:37 -0400] rev 89
- Release 6.2
- Thu, 10 Jul 2008 21:00:51 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 10 Jul 2008 21:00:51 -0400] rev 88
- Update TODO
- Thu, 24 Jul 2008 22:49:03 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 24 Jul 2008 22:49:03 -0400] rev 87
- Tidy: no need to import glob anymore.
- Thu, 24 Jul 2008 22:46:27 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 24 Jul 2008 22:46:27 -0400] rev 86
- Be more careful on SIGINT/SIGKILL cleanup.
Don't blow away .dtrx-*, instead look for our specific extraction directory
and delete that.
- Thu, 24 Jul 2008 22:35:38 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 24 Jul 2008 22:35:38 -0400] rev 85
- Use the default action for SIGPIPE.
Using Python's built-in handler makes weird error messages for the user,
and there's no reason not to act like every other Unix program in this
regard. This seems particularly true since we're most likely to get
SIGPIPE with dtrx -l, where we won't write things to disk etc.
- Thu, 24 Jul 2008 22:15:19 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Thu, 24 Jul 2008 22:15:19 -0400] rev 84
- Add --one-entry option to specify default handling for one-entry archives.
As part of this I ended up cleaning up the option-generating code a little
bit, mostly to be more careful about the ordering of options in --help
output.
- Wed, 23 Jul 2008 12:15:45 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Wed, 23 Jul 2008 12:15:45 -0400] rev 83
- Use the --quiet option for cpio -t too.
- Wed, 23 Jul 2008 12:01:58 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Wed, 23 Jul 2008 12:01:58 -0400] rev 82
- Stop worrying about trailing newlines in get_filenames() overrides.
Now that all the get_filenames implementations call out to the original,
which takes care of the trailing newline, we don't need to keep doing it in
other methods.
- Sun, 20 Jul 2008 22:24:49 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 20 Jul 2008 22:24:49 -0400] rev 81
- Move most ExtractorBuilder constants to the top.
This actually makes the code a little longer, but it's much more organized:
whenever a new extractor is added, you just have to add one entry to
extractor_map accordingly.
- Sun, 20 Jul 2008 21:39:39 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 20 Jul 2008 21:39:39 -0400] rev 80
- Move more common extraction/listing functionality into BaseExtractor.
I noticed that a lot of the extract_archive/get_filenames implementations
were the same two lines of code: a pipe and a run_pipes. Short as it is,
there's no reason to keep repeating that two-line incantation, so I moved
this basic pattern into BaseExtractor.
- Sun, 20 Jul 2008 21:16:08 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 20 Jul 2008 21:16:08 -0400] rev 79
- Improve dtrx -l performance on misnamed files, and clean other error messages.
dtrx -l would only ever try one extractor, instead of trying all possible
alternaitves like it did when extracting. This is mostly because
get_filenames() reported no meaningful error information. This has been
fixed.
Some error messages have been genericized, since we're not always
extracting archives: we might be listing their contents instead.
- Sun, 20 Jul 2008 20:45:54 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 20 Jul 2008 20:45:54 -0400] rev 78
- Don't show errors from failed extractors unless they all fail.
If dtrx has to try different extractors before finding and using the right
one, the user shouldn't see error messages from the failed extractors;
those are just confusing. Just like the Application decides whether to say
particular extractors failed at all, this patch makes it also decide
whether or not to show the stderr from those extractors.
- Sun, 20 Jul 2008 20:25:54 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Sun, 20 Jul 2008 20:25:54 -0400] rev 77
- Clean the target directory if an extraction attempt failed.
- Tue, 15 Jul 2008 22:18:03 -0400
- by Brett Smith <brettcsmith@brettcsmith.org> [Tue, 15 Jul 2008 22:18:03 -0400] rev 76
- Give extraction stderr more context, and suppress normal cpio stderr junk.
cpio will write a useless "N blocks" message to stderr without --quiet, so
use that.
When we show extraction's stderr to the user, first write a line explaining
what it is, and also don't forget to strip the trailing newline, since
.warning() writes its own.