[arch-projects] [dbscripts] [RFC] [PATCH] db-remove: remove package if not in svn
Florian Pritz
bluewind at xinu.at
Sat Jul 9 03:55:08 EDT 2011
We know what the user wants us to do (remove a package from the repo and
svn) so if it's not in svn it should still be removed from the db.
Having to use a seperate tool (db-repo-remove) is confusing.
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
This seems to be what af06266bf8d7eb0377dd6dcfad7bf1b9c1f79825 was trying to do.
db-remove | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/db-remove b/db-remove
index 292af5d..b44eb33 100755
--- a/db-remove
+++ b/db-remove
@@ -38,6 +38,9 @@ if [ -d "${WORKDIR}/svn/$pkgbase/repos/$svnrepo" ]; then
/usr/bin/svn commit -q "${WORKDIR}/svn/$pkgbase" -m "$(basename $0): $pkgbase removed by $(id -un)"
else
warning "$pkgbase not found in $svnrepo"
+ warning "Removing only $pkgbase from the repo"
+ warning "If it was a split package you have to remove the others yourself!"
+ pkgnames=($pkgbase)
fi
for tarch in ${tarches[@]}; do
--
1.7.6
More information about the arch-projects
mailing list