[PATCH] make scripts/buildinstall take multiple repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch makes buildinstall accept multiple repo arguments. This is
useful when, say, you have a couple of packages that haven't hit rawhide
yet, but you want to test them in the installer.

./buildinstall ... http://rawhide... /home/wwoods/myrepo 
or
make testiso REPO="http://rawhide... /home/wwoods/myrepo"

-w

(sorry if this message shows up a couple of times.. still figuring out
how to use git-format-patch and git-send-email)
---
 scripts/buildinstall |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/scripts/buildinstall b/scripts/buildinstall
index a5001a9..4c71e16 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -69,7 +69,11 @@ while [ $# -gt 0 ]; do
 	    ;;
 
 	*)
-	    REPO=$1
+        if [ -z "$REPO" ]; then 
+    	    REPO=$1
+        else
+            EXTRA_REPOS="$EXTRA_REPOS $1"
+        fi
 	    shift
 	    ;;
     esac
@@ -123,6 +127,22 @@ baseurl=$REPO
 enabled=1
 EOF
 
+n=1
+for r in $EXTRA_REPOS; do
+    if [[ $r =~ ^/ ]]; then
+        r="file://$r"
+    fi
+    cat >> $yumconf <<EOF
+
+[anaconda-extrarepo-$n]
+name=anaconda extra repo $n
+baseurl=$r
+enabled=1
+EOF
+    let n++
+done
+
+
 BUILDINSTDIR=`mktemp -d ${TMPDIR:-/tmp}/buildinstall.tree.XXXXXX`
 TREEDIR=`mktemp -d ${TMPDIR:-/tmp}/treedir.XXXXXX`
 
-- 
1.5.4.5


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux