summaryrefslogtreecommitdiff
path: root/db-remove
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 19:24:48 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 19:24:48 -0400
commit827e305df0f565d7da844684290323a75bf081a6 (patch)
tree9753469d58a11b434d8da109c00a23c0e721a52d /db-remove
parentd42f5c6ab02a861ef548ae12fe403f61e2b02e4f (diff)
parent1d5db10302f0a0517c022fae4b6a66862eb7e2cf (diff)
Merge branch 'lukeshu/archlinux+xbs+merge-parabola' into lukeshu/archlinux+xbs+db-import
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-remove b/db-remove
index 993574f..33d0933 100755
--- a/db-remove
+++ b/db-remove
@@ -10,7 +10,7 @@ fi
repo="$1"
arch="$2"
-pkgbases=(${@:3})
+pkgbases=("${@:3}")
if ! check_repo_permission $repo; then
die "You don't have permission to remove packages from ${repo}"
@@ -27,17 +27,17 @@ for tarch in "${tarches[@]}"; do
done
remove_pkgs=()
-for pkgbase in ${pkgbases[@]}; do
+for pkgbase in "${pkgbases[@]}"; do
msg "Removing $pkgbase from [$repo]..."
path="$(xbs releasepath "$pkgbase" "$repo" "$arch")"
if [ -d "$path" ]; then
remove_pkgs+=($(. "$path/PKGBUILD"; echo ${pkgname[@]}))
xbs unrelease "$pkgbase" "$repo" "$arch"
else
- warning "$pkgbase not found in $repo-$arch"
+ warning "$pkgbase not found in XBS $repo-$arch"
warning "Removing only $pkgbase from the repo"
warning "If it was a split package you have to remove the others yourself!"
- remove_pkgs+=($pkgbase)
+ remove_pkgs+=("$pkgbase")
fi
done