Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/asp.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-07-31 11:40:58 -0400
committerDave Reisner <dreisner@archlinux.org>2014-07-31 11:40:58 -0400
commit0e2dbae33a788c92e1bcb3b4883d5be7ce2281be (patch)
tree579b2a0de0231abd53e87343ffd1633e08f67ee5 /asp.in
parent2b7f3111546b0e6c364d23bcb15269f2b5dcf1a1 (diff)
add 'untrack' verb
Diffstat (limited to 'asp.in')
-rw-r--r--asp.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/asp.in b/asp.in
index 5393823..1c4902e 100644
--- a/asp.in
+++ b/asp.in
@@ -63,6 +63,7 @@ Commands:
log NAME Show revision history
shortlog NAME Show revision history in short form
update [NAME...] Update packages (update all tracked if none specified)
+ untrack NAME... Remove a package from the local repository
EOF
}
@@ -156,6 +157,14 @@ gc() {
git gc
}
+untrack() {
+ local pkgname=$1 remote
+
+ package_init -n "$pkgname" remote || return 1
+
+ remote_untrack "$remote" "$pkgname"
+}
+
disk_usage() {
local usage
read usage _ < <(du -sh "$ASPROOT/objects")
@@ -235,6 +244,9 @@ case $action in
gc)
gc
;;
+ untrack)
+ map untrack "$@"
+ ;;
help)
usage
exit 0