eobuilder: fix pbuilder path cleanning
This commit is contained in:
parent
abfc85055d
commit
b2278b06ea
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
USAGE="Usage: `basename $0` [-h] [-c git|deb|archives|all] [-a amd64|i386] -d squeeze|wheezy GIT_REPOSITORY_NAME"
|
||||
USAGE="Usage: `basename $0` [-h] [-c git|deb|archives|all|old] [-a amd64|i386] -d squeeze|wheezy GIT_REPOSITORY_NAME"
|
||||
|
||||
GIT_PATH="/var/lib/eobuilder/git"
|
||||
ORIGIN_PATH="/var/lib/eobuilder/origin"
|
||||
|
@ -55,14 +55,14 @@ while getopts hc:a:d: OPT; do
|
|||
elif [ "git" = $OPTARG ]; then
|
||||
rm -rf $GIT_PATH
|
||||
elif [ "deb" = $OPTARG ]; then
|
||||
rm -rf $BUILDER_RESULT
|
||||
rm -rf $PBUILDER_RESULT
|
||||
elif [ "archives" = $OPTARG ]; then
|
||||
rm -rf $ORIGIN_PATH
|
||||
elif [ "old" = $OPTARG ]; then
|
||||
for file in `find $ORIGIN_PATH -type f -mtime +60 -print`; do
|
||||
rm $file
|
||||
done
|
||||
for file in `find $BUILDER_RESULT -type f -mtime +60 -print`; do
|
||||
for file in `find $PBUILDER_RESULT -type f -mtime +60 -print`; do
|
||||
rm $file
|
||||
done
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue