[PATCH] Don't depend on product path for finding the anaconda-runtime package

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

 



---
 scripts/buildinstall |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/buildinstall b/scripts/buildinstall
index 81ac3e3..339779c 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -99,7 +99,8 @@ PKGDIR=$DIR/$PRODUCTPATH
 BUILDINSTDIR=`mktemp -d ${TMPDIR:-/tmp}/buildinstall.tree.XXXXXX`
 TREEDIR=`mktemp -d ${TMPDIR:-/tmp}/treedir.XXXXXX`
 
-BUILDARCH=`rpm -qp --qf "%{ARCH}\n" $PKGDIR/anaconda-runtime-[0-9]* |head -n 1`
+ANACONDARUNTIME=`find $p -name "anaconda-runtime-[0-9]*" |head -n 1`
+BUILDARCH=`rpm -qp --qf "%{ARCH}\n" $ANACONDARUNTIME`
 
 echo "Running buildinstall..."
 
@@ -110,7 +111,7 @@ if ! [ -d $DIR/repodata ]; then
 fi
 
 pushd $BUILDINSTDIR
-rpm2cpio $PKGDIR/anaconda-runtime-[0-9]* | cpio --quiet -iumd './usr*'
+rpm2cpio $ANACONDARUNTIME | cpio --quiet -iumd './usr*'
 popd
 
 UPD_INSTROOT=./upd-instroot
-- 
1.5.4.1

_______________________________________________
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