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 <tudor.marcu@intel.com>
This commit is contained in:
Tudor Marcu
2018-02-15 10:50:59 -08:00
committed by Matthew Johnson
parent 45bec26eea
commit 2c3dd5e833
+2
View File
@@ -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..."