obs-packaging: Skip packaging qemu-lite for non-amd64 arch

Skip packaging for qemu-lite
when releasing packages for
non-amd64 archs.

Fixes: #206

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
Nitesh Konkar 2018-10-02 23:34:55 +05:30
parent 7fa02b2ef5
commit 596fb8ce32
2 changed files with 4 additions and 5 deletions

View File

@ -43,10 +43,6 @@ main() {
pushd "${script_dir}"
for p in "${OBS_PKGS_PROJECTS[@]}"; do
if [[ "$GO_ARCH" != "amd64" && "$p" == "qemu-lite" ]]; then
echo "Skipping packaging qemu-lite as its only for amd64 arch"
continue
fi
pushd "$p" >>/dev/null
update_cmd="./update.sh"
if [ -n "${PUSH}" ]; then

View File

@ -7,7 +7,6 @@
#Note:Lets update qemu and the kernel first, they take longer to build.
#Note: runtime is build at the end to get the version from all its dependencies.
OBS_PKGS_PROJECTS=(
qemu-lite
qemu-vanilla
kernel
kata-containers-image
@ -16,3 +15,7 @@ OBS_PKGS_PROJECTS=(
ksm-throttler
runtime
)
if [ "$(uname -m)" == "x86_64" ]; then
OBS_PKGS_PROJECTS=("qemu-lite" "${OBS_PKGS_PROJECTS[@]}")
fi