diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-27 23:04:46 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-28 14:55:07 -0500 |
commit | 0b780f7a2b12eb67207213ec4ff3bf9814eb06ec (patch) | |
tree | aec5e195b6060fe796839c2ecd424f0c472ced77 /scripts/upd-instroot | |
parent | 6e48880d0b0aa76f139fdca081c5ca48c146ee82 (diff) | |
download | anaconda-0b780f7a2b12eb67207213ec4ff3bf9814eb06ec.tar.gz anaconda-0b780f7a2b12eb67207213ec4ff3bf9814eb06ec.tar.xz anaconda-0b780f7a2b12eb67207213ec4ff3bf9814eb06ec.zip |
Take --updates with location of additional updates beyond the package set used
For testing purposes, add the ability to use a --updates to buildinstall for
getting additional updates for testing.
Diffstat (limited to 'scripts/upd-instroot')
-rwxr-xr-x | scripts/upd-instroot | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 045eeb2e6..c2f208479 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -49,6 +49,13 @@ while [ $# -gt 0 ]; do shift; shift ;; + # a filesystem tree to use as updates. could be the output + # of 'make install' from anaconda... + --updates) + UPDATES=$2 + shift; shift + ;; + *) yumconf=$1 shift @@ -94,6 +101,10 @@ expandPackageSet() { if [ -z "$DEBUG" ]; then outlvl="--quiet" ; else outlvl="--verbose"; fi yum $outlvl -c $YUMCONF -y --installroot=$YUMDIR install $RPMS 2>&1 || die "ERROR: could not install packages" + if [ -n "$UPDATES" ]; then + (cd $UPDATES; find) | (cd $UPDATES ; /bin/cpio --quiet -pmdu $YUMDIR) + fi + # figure out the theme to keep if [ -f $YUMDIR/etc/gtk-2.0/gtkrc ]; then gtktheme=$(grep "gtk-theme-name" $YUMDIR/etc/gtk-2.0/gtkrc | awk {'print $3;'} | sed -e 's/"//g') |