[Frugalware-git] pacman-tools: repoman clean
Miklos Vajna
vmiklos at frugalware.org
Mon Nov 30 09:22:03 CET 2009
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=dea667e3f5909e4e0cfb44ab31c69f0676dc1435
commit dea667e3f5909e4e0cfb44ab31c69f0676dc1435
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Mon Nov 30 09:20:34 2009 +0100
repoman clean
Don't rm -rf the package dir in case the FrugalBuild is still there,
just run git clean.
This is necessary when a package was already there, we marked it as
nobuild and now we run 'repoman clean'.
diff --git a/repoman b/repoman
index 9641e91..f8fd436 100755
--- a/repoman
+++ b/repoman
@@ -261,7 +261,11 @@ server()
done
rm .git/lock
if [ -d source/$group/$pkg ]; then
- rm -rfv source/$group/$pkg
+ if [ ! -f source/$group/$pkg/FrugalBuild ]; then
+ rm -rfv source/$group/$pkg
+ else
+ git clean -x -d -f source/$group/$pkg
+ fi
fi
;;
More information about the Frugalware-git
mailing list