X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap.sh;h=0b384113100308305e1a8b5d57fdb940c449fcf1;hb=b1078f9a7d0fc70770216a8d49e544ae67d4a687;hp=c7eeca4e2eb337b54ce80eaee10fa9b37cbcf9b3;hpb=9a6f7420554d0cd1116b230fd48052613f6d5885;p=febootstrap.git diff --git a/febootstrap.sh b/febootstrap.sh index c7eeca4..0b38411 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -18,9 +18,11 @@ # # Written by Richard W.M. Jones +unset CDPATH + TEMP=`getopt \ - -o g:i:p: \ - --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy: \ + -o g:i:p:u: \ + --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy:,updates: \ -n febootstrap -- "$@"` if [ $? != 0 ]; then echo "febootstrap: problem parsing the command line arguments" @@ -45,11 +47,14 @@ while true; do -i|--install) packages[i++]="$2" shift 2;; + --groupinstall|--group-install) + packages[i++]="@$2" + shift 2;; -p|--proxy) proxy="proxy=$2" shift 2;; - --groupinstall|--group-install) - packages[i++]="@$2" + -u|--updates) + updates="$2"; shift 2;; --noclean|--no-clean) clean=no @@ -110,6 +115,36 @@ else echo "mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=$repo&arch=$arch" >> "$tmpdir"/febootstrap.repo fi +# Add the updates repository if asked. +case "$updates" in + none|no) + ;; + *://*) + cat >> $tmpdir/febootstrap.repo <> $tmpdir/febootstrap.repo <