ecompressdir currently leaves man.ecompress.dir files behind for every
authorFabian Groffen <grobian@gentoo.org>
Tue, 1 May 2007 08:02:21 +0000 (08:02 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 1 May 2007 08:02:21 +0000 (08:02 -0000)
package.  This is IMO caused by dir being ".", so use actual_dir
instead.  This patch should be merged to the trunk if Mike agrees this
is the correct thing to do.

svn path=/main/branches/prefix/; revision=6464

bin/ecompressdir

index a4b166f540a62ef2a0191e1ad273f488d2477735..4b685f9daae8818e66fe81270e060439541feccf 100755 (executable)
@@ -111,7 +111,7 @@ for dir in "$@" ; do
 
        # since we've been requested to compress the whole dir,
        # delete any individual queued requests
-       rm -f "${dir}.ecompress.dir"
+       rm -f "${actual_dir}.ecompress.dir"
        find "${dir}" -type f -name '*.ecompress.file' -print0 | ${XARGS} -0 rm -f
 
        # not uncommon for packages to compress doc files themselves