Add extenral repository.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 23 Apr 2013 14:31:32 +0000 (16:31 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 23 Apr 2013 14:31:32 +0000 (16:31 +0200)
fed-16-x86_64.cfg.template
fed-17-x86_64.cfg.template
fed-18-x86_64.cfg.template
mock.sh
sl-5-i386.cfg.template
sl-5-x86_64.cfg.template
sl-6-i386.cfg.template
sl-6-x86_64.cfg.template

index 9489020..c1cb9ee 100644 (file)
@@ -40,8 +40,11 @@ gpgkey=http://emisoft.web.cern.ch/emisoft/dist/EMI/2/RPM-GPG-KEY-emi
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
index 93eea94..0e04e60 100644 (file)
@@ -40,8 +40,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
index 121060b..37565f6 100644 (file)
@@ -40,8 +40,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
diff --git a/mock.sh b/mock.sh
index 2ab6c7a..acb1c96 100755 (executable)
--- a/mock.sh
+++ b/mock.sh
@@ -70,7 +70,7 @@ if test "$1" != "clean"; then
                        touch mock/site-defaults.cfg
                fi
                if test ! -s mock/$CONF.cfg -o $LAUNCHDIR/$CONF.cfg.template -nt mock/$CONF.cfg; then
-                       sed -e "s,@PWD@,`pwd`," -e "s,@REPO@,results," $LAUNCHDIR/$CONF.cfg.template > mock/$CONF.cfg
+                       sed -e "s,@PWD@,`pwd`," -e "s,@REPO@,results," -s "s,@REPO_EXT@,externals," $LAUNCHDIR/$CONF.cfg.template > mock/$CONF.cfg
                fi
 
                createrepo results
index 878203a..79ec404 100644 (file)
@@ -48,8 +48,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
index 9d7e359..797603c 100644 (file)
@@ -48,8 +48,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
index 4faf6cd..4df03d5 100644 (file)
@@ -48,8 +48,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """
index 9ea8006..cfc63a6 100644 (file)
@@ -48,8 +48,11 @@ gpgkey=http://scientific.zcu.cz/repos/RPM-GPG-KEY-valtri
 protect=1
 enabled=1
 
-[main]
 [local]
 name=Local
 baseurl=file://@PWD@/@REPO@
+
+[local-ext]
+name=External
+baseurl=file://@PWD@/@REPO_EXT@
 """