changelog
- Thu, 10 Jul 2008 19:31:23 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 10 Jul 2008 19:31:23 -0400] rev 68
- more TODO updates
- Thu, 10 Jul 2008 18:48:09 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 10 Jul 2008 18:48:09 -0400] rev 67
- Update TODO: remove complete tasks, add new items.
- Thu, 10 Jul 2008 18:44:06 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 10 Jul 2008 18:44:06 -0400] rev 66
- Don't prompt for one entry handling with -f.
-f makes the answer to the "what do you want to do with this one file"
question clear, so the user shouldn't be asked for the answer.
- Thu, 05 Jun 2008 22:54:10 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 05 Jun 2008 22:54:10 -0400] rev 65
- Make the wording on the One Entry question a little clearer.
Unfortunately I now realize that things don't really work when your archive
just contains one *file*, so I'll have to address that later.
- Thu, 05 Jun 2008 22:00:39 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 05 Jun 2008 22:00:39 -0400] rev 64
- Add notes about the hg repo.
- Thu, 05 Jun 2008 21:44:38 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 05 Jun 2008 21:44:38 -0400] rev 63
- add web site to hg repo
- Thu, 05 Jun 2008 21:24:44 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 05 Jun 2008 21:24:44 -0400] rev 62
- Deal with partially extracted tarballs.
If you can only extract part of a tarball -- for example, because it
includes nodes and you're not root -- tar will extract what it can but give
an error code. So now dtrx will only fail if some subprogram threw an
error code *and* nothing actually got extracted. Otherwise, we'll show
whatever errors came up, but we'll still assume the extraction was as
successful as it's going to be.
- Thu, 05 Jun 2008 10:00:38 -0400
- by Brett Smith <brett@brettcsmith.org> [Thu, 05 Jun 2008 10:00:38 -0400] rev 61
- update TODO
- Wed, 30 Apr 2008 21:33:30 -0400
- by Brett Smith <brett@brettcsmith.org> [Wed, 30 Apr 2008 21:33:30 -0400] rev 60
- Add missing test tarballs
- Wed, 06 Feb 2008 19:38:26 -0500
- by brett [Wed, 06 Feb 2008 19:38:26 -0500] rev 59
- [svn] Find self-extracting archives by their file magic only, not extension/mimetype.
The problem with using extensions/mimetypes for this is that it net way too
many false positives. Files ending in .com, .bat, etc. would cause the
user to be prompted for recursive extraction. This makes that problem go
away, and it means that error messages when the user tries to extract a
non-archive .exe will probably be more useful, too.
- Sun, 20 Jan 2008 15:32:02 -0500
- by brett [Sun, 20 Jan 2008 15:32:02 -0500] rev 58
- [svn] Steel FilenameChecker against race conditions.
Since FilenameChecker was just using os.path.exists() to see whether or not
a filename was free, it had a time of check vs. time of use vulnerability.
Matthew was prodding me about the inconsistency with DirectoryChecker, so
that inspired me to fix this. This also entailed some refactoring. Thanks
Matthew.
- Sun, 20 Jan 2008 13:42:48 -0500
- by brett [Sun, 20 Jan 2008 13:42:48 -0500] rev 57
- [svn] Add note about needing syck.
- Sun, 20 Jan 2008 13:39:04 -0500
- by brett [Sun, 20 Jan 2008 13:39:04 -0500] rev 56
- [svn] Add NEWS, and other documentation updates.
- Sun, 20 Jan 2008 12:15:55 -0500
- by brett [Sun, 20 Jan 2008 12:15:55 -0500] rev 55
- [svn] Stupid Python 2.3 doesn't support [].sort(reverse=True).
- Sun, 20 Jan 2008 12:05:14 -0500
- by brett [Sun, 20 Jan 2008 12:05:14 -0500] rev 54
- [svn] Update copyright dates in the license headers.
- Sun, 20 Jan 2008 12:00:35 -0500
- by brett [Sun, 20 Jan 2008 12:00:35 -0500] rev 53
- [svn] Add interactive option to list recursive archives when found.
I'm not really wild about how this is built but since it's a one-off I'm
not sure what a better infrastructure would look like yet.
Also add a test for a -fv combo while I was in there.
- Sun, 20 Jan 2008 11:10:48 -0500
- by brett [Sun, 20 Jan 2008 11:10:48 -0500] rev 52
- [svn] Make just one -v print a list of filenames, a la tar.
- Sun, 20 Jan 2008 09:47:33 -0500
- by brett [Sun, 20 Jan 2008 09:47:33 -0500] rev 51
- [svn] Don't try to rmtree when overwriting just a file.
- Sun, 20 Jan 2008 09:22:13 -0500
- by brett [Sun, 20 Jan 2008 09:22:13 -0500] rev 50
- [svn] Run the cleanup script after the test even if there's no more comparing to do.
- Sun, 20 Jan 2008 04:02:19 -0500
- by brett [Sun, 20 Jan 2008 04:02:19 -0500] rev 49
- [svn] Add a traceback when we catch a signal.
- Sun, 20 Jan 2008 03:53:02 -0500
- by brett [Sun, 20 Jan 2008 03:53:02 -0500] rev 48
- [svn] Handle SIGINT and SIGKILL.
This prevents us from spewing a traceback. We also make one last-ditch
effort to clean up any temporary stuff so it doesn't hog the user's disk.
Also made some aesthetic changes: replace the last instance of run-command
with shutil.rmtree, so the whole function's gone now. Also call it set
instead of Set.
- Sun, 20 Jan 2008 01:59:42 -0500
- by brett [Sun, 20 Jan 2008 01:59:42 -0500] rev 47
- [svn] Fix various bugs in the recursive extraction.
First, 5.0 introduced a regression where it wouldn't find archives hidden
in subdirectories. So fix that.
Then recursive extraction would get confused if the archive was a ONE_ENTRY
and we decided to wrap it or just extract it here. Fix that too: the
extractor keeps track of where it thinks it's extracting to, and then the
handler will change that if necessary.
There are unit tests for all this.
I twiddled some other small thing while I was at it but now I forget what.
- Thu, 17 Jan 2008 22:44:46 -0500
- by brett [Thu, 17 Jan 2008 22:44:46 -0500] rev 46
- [svn] Make dtrx -v print *something*.
paulv wants it to act like tar -v. I'm not yet convinced this is a good
idea because it makes less sense with dtrx moving things around on you. It
could do an ls for you, of course, but... why? But it definitely is weird
to have it be silent.
- Thu, 17 Jan 2008 22:36:07 -0500
- by brett [Thu, 17 Jan 2008 22:36:07 -0500] rev 45
- [svn] At work I was getting an unhelpful "No such file or directory" error when I
tried to extract an .exe. It turns out this was because I didn't have
cabextract installed. This inspired a few changes:
* BaseExtractor now raises an ExtractorUnusable error when this happens.
* Various points in the code deal with this properly.
* The loop for trying extractors will now report all the errors it got, if
extraction is unsuccessful, to better help you understand why.
Also snuck in a bug fix where things weren't being cleaned properly with a
half-extracted archive.
Also got my version number situation in order, in anticipation for the next
release, which may be a while yet but at least I won't have to worry about
it then.
- Tue, 27 Nov 2007 22:43:40 -0500
- by brett [Tue, 27 Nov 2007 22:43:40 -0500] rev 44
- [svn] Missed a couple of spots.
- Tue, 27 Nov 2007 22:04:04 -0500
- by brett [Tue, 27 Nov 2007 22:04:04 -0500] rev 43
- [svn] Sadly Python 2.3 does not have an rsplit method on strings.
- Mon, 26 Nov 2007 22:39:29 -0500
- by brett [Mon, 26 Nov 2007 22:39:29 -0500] rev 42
- [svn] Update documentation.
- Mon, 26 Nov 2007 22:31:25 -0500
- by brett [Mon, 26 Nov 2007 22:31:25 -0500] rev 41
- [svn] Minor clean-ups. The most important of these is that we now have a better
strategy for dealing with the pathological case of having many extraction
destinations taken: after trying various names with number suffixes, we'll
finally resort to mkstemp/mkdtemp to get what we need. This still isn't
guaranteed to work but it's much more reliable. Also print out a warning
for the user when we extract to some weird directory.
- Fri, 23 Nov 2007 17:55:07 -0500
- by brett [Fri, 23 Nov 2007 17:55:07 -0500] rev 40
- [svn] Be a little nicer about explaining that we can't extract to the current
directory.
- Fri, 23 Nov 2007 16:25:22 -0500
- by brett [Fri, 23 Nov 2007 16:25:22 -0500] rev 39
- [svn] Improve the error reporting to be more user-friendly, at least in many of
the really basic cases.
- Fri, 23 Nov 2007 15:22:34 -0500
- by brett [Fri, 23 Nov 2007 15:22:34 -0500] rev 38
- [svn] Some more tests to make sure we always do the right thing in the
archive-with-one-file case. Also be a little more thorough in our cleanup.
- Fri, 23 Nov 2007 11:59:27 -0500
- by brett [Fri, 23 Nov 2007 11:59:27 -0500] rev 37
- [svn] Documentation update.