diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-08 19:29:46 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-08 19:29:46 +0000 |
commit | 9ef3ef91e00ce5e35760944c58856600305c4b8b (patch) | |
tree | b8f37434ef5384598935c9cbfade1b18ac655c9e /src | |
parent | 5671a97e44188ce6a484fdcfd15bf034c7cbe8f7 (diff) | |
download | simplepkg-9ef3ef91e00ce5e35760944c58856600305c4b8b.tar.gz simplepkg-9ef3ef91e00ce5e35760944c58856600305c4b8b.tar.bz2 |
small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@160 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/simplaret b/src/simplaret index 568ae91..a048ed1 100755 --- a/src/simplaret +++ b/src/simplaret @@ -429,7 +429,7 @@ function simplaret_purge { function simplaret_search_and_delete { - local file candidate + local file candidate place basename for file in `find $2/ -name $1*tgz 2> /dev/null`; do candidate="`basename $file`" @@ -449,7 +449,11 @@ function simplaret_search_and_delete { fi return 1 else - rm $file + place="`dirname $file`" + basename="`basename $file tgz`" + rm -f $file + rm -f $place/$candidate.slack-required + rm -f $file.asc $place/$basename.meta $place/$basename.txt break fi fi |