Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=dea667e3f5909e4e0cfb44ab31c69f0676dc1435

commit dea667e3f5909e4e0cfb44ab31c69f0676dc1435
Author: Miklos Vajna <vmik...@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
;;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to