aboutsummarylogtreecommitdiffstats
path: root/haur
diff options
context:
space:
mode:
authorYash Karandikar2020-02-17 11:06:31 -0600
committerYash Karandikar2020-02-17 11:06:31 -0600
commitfbcf93ce85eb1ed65662b92d9e22d08b2a3f2fe0 (patch)
treea442810b11751ca687a18c576155058ffd4c6b07 /haur
parent8638eb354585e5322da4a5147123ac7fb221a0ee (diff)
downloadaur-fbcf93ce85eb1ed65662b92d9e22d08b2a3f2fe0.tar.gz
Add ability to clear cached pakages
Diffstat (limited to 'haur')
-rwxr-xr-xhaur3
1 files changed, 2 insertions, 1 deletions
diff --git a/haur b/haur
index 97fc7cd08e4b..90e38ec38091 100755
--- a/haur
+++ b/haur
@@ -15,9 +15,10 @@ then
for PACKAGE_NAME in "$@"
do
if [ $PACKAGE_NAME != "--remove" ] || [ $PACKAGE_NAME != "-r" ]
-then
+then
echo "Removing $PACKAGE_NAME"
sudo pacman -Rns $PACKAGE_NAME
+ echo $PACKAGE_NAME > $HOME/.haur_cache
fi
done
exit 0