From 2c3dd5e83315788b0bc1a4eec0b3f10cff71678f Mon Sep 17 00:00:00 2001 From: Tudor Marcu Date: Thu, 15 Feb 2018 18:00:59 +0000 Subject: [PATCH] swupd-add-pkg: Fix upstream url not being filled in The script should be calling init-mix to fully and correctly setup the mix directory. Without this, the upstream url was never being recorded, and the yum-mix.conf did not get the URL substituted during chroots phase. Signed-off-by: Tudor Marcu --- swupd-add-pkg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swupd-add-pkg b/swupd-add-pkg index 591133c6..dd8f2103 100755 --- a/swupd-add-pkg +++ b/swupd-add-pkg @@ -53,6 +53,8 @@ fi clearver=$(cat $MIX_DIR/.clearversion | tr -d ' ') echo -n "$clearver" | sudo tee "$MIX_DIR/version" > /dev/null +sudo mixer init-mix -clearver $(cat "$MIX_DIR/.clearversion") -mixver $(cat "$MIX_DIR/.mixversion") -config "$BUILDCONF" + if [[ -n "$pkg" && -n "$bundle" ]]; then echo "Adding $pkg to $bundle..."