summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2008-10-29 10:59:55 +0100
committerRadek Vykydal <rvykydal@redhat.com>2008-10-29 10:59:55 +0100
commit41c4a303d1232776a679ef4726b17b7667dda8b9 (patch)
tree9800e7947d6364b082fcd03ae5253e85a58241be
parent92bfc99900c3d44bc3738707f2ac8860711e1d7c (diff)
downloadanaconda-41c4a303d1232776a679ef4726b17b7667dda8b9.tar.gz
anaconda-41c4a303d1232776a679ef4726b17b7667dda8b9.tar.xz
anaconda-41c4a303d1232776a679ef4726b17b7667dda8b9.zip
Call createrepo in buildinstall only if --pkgorder is present (#467341).
-rwxr-xr-xscripts/buildinstall5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/buildinstall b/scripts/buildinstall
index 321b30871..072f8bfaa 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -148,10 +148,9 @@ BUILDINSTALL=$BUILDINSTDIR/buildinstall
echo "Building images..."
$UPD_INSTROOT $DEBUGSTR $NOGRSTR $PKGDIR $TREEDIR/image-template $TREEDIR/instimage
-echo "Creating repository metadata..."
-createrepo -g "$COMPSFILE" -q $p
-
if [ -n "$PKGORDER" ]; then
+ echo "Creating repository metadata..."
+ createrepo -g "$COMPSFILE" -q $p
echo "Getting package order..."
echo "PYTHONPATH=$TREEDIR/instimage/usr/lib/anaconda $TREEDIR/instimage/usr/lib/anaconda-runtime/pkgorder $p $BUILDARCH $PRODUCTPATH"
PYTHONPATH=$TREEDIR/instimage/usr/lib/anaconda $TREEDIR/instimage/usr/lib/anaconda-runtime/pkgorder $p $BUILDARCH $PRODUCTPATH > $PKGORDER