Build gridsite on Debian.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 10 Jul 2012 09:16:56 +0000 (11:16 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 10 Jul 2012 09:16:56 +0000 (11:16 +0200)
mock.sh

diff --git a/mock.sh b/mock.sh
index 311b315..4a3a116 100755 (executable)
--- a/mock.sh
+++ b/mock.sh
@@ -129,8 +129,13 @@ package() {
 while test -n "$1"; do
        case "$1" in
        gridsite|grids)
-               file=`find org.gridsite.core/RPMTMP -type f -name gridsite-\*.src.rpm | head -n 1`
-               mock_build $file
+               if test "$CONF" = "pbuilder"; then
+                       file=`find org.gridsite.core/RPMTMP -type f -name gridsite_\*.dsc | head -n 1`
+                       pbuilder_build $file
+               else
+                       file=`find org.gridsite.core/RPMTMP -type f -name gridsite-\*.src.rpm | head -n 1`
+                       mock_build $file
+               fi
                ;;
 
        jobid)