mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-05 00:25:53 +00:00
added -y opt to scratch_purge
This commit is contained in:
13
scratch
13
scratch
@@ -1304,11 +1304,18 @@ scratch_missingdep() {
|
||||
}
|
||||
|
||||
scratch_purge() {
|
||||
needroot
|
||||
needroot "Purging package"
|
||||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
-*) PURGEOPTS="$PURGEOPTS $1";;
|
||||
*) PURGENAME="$PURGENAME $1";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
echo "Resolving dependencies..."
|
||||
x=$(scratch_orphan $@)
|
||||
x=$(scratch_orphan $PURGENAME)
|
||||
if [ "$x" ]; then
|
||||
scratch_remove $x
|
||||
scratch_remove $x $PURGEOPTS
|
||||
else
|
||||
echo "No orphan packages found..."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user