summaryrefslogtreecommitdiff
path: root/db-remove
diff options
context:
space:
mode:
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove9
1 files changed, 5 insertions, 4 deletions
diff --git a/db-remove b/db-remove
index 46585ad..33d0933 100755
--- a/db-remove
+++ b/db-remove
@@ -29,11 +29,12 @@ done
remove_pkgs=()
for pkgbase in "${pkgbases[@]}"; do
msg "Removing $pkgbase from [$repo]..."
-
- if [ -d "${SVNREPO}/$repo/$pkgbase" ]; then
- remove_pkgs=($(. "${SVNREPO}/$repo/$pkgbase/PKGBUILD"; echo ${pkgname[@]}))
+ 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 ABS(libre)"
+ 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")