diff --git a/ci/osc.sh b/ci/osc.sh index 96225d2..b8fb1eb 100644 --- a/ci/osc.sh +++ b/ci/osc.sh @@ -1,47 +1,47 @@ #!/bin/bash pushd /srv cat > /root/.oscrc << EOF [general] apiurl = https://obs.kolabsys.com [https://obs.kolabsys.com] user = docker pass = QfF1FqSk4y3MHIK EOF -rels=$(osc ls | grep -vE "^Kolab:") +rels=$(osc ls | grep -E "^Kolab:") dists=$(osc ls | grep -vE "^(cyrus-imapd|deleted|home|Kolab|Kontact)") for rel in ${rels}; do osc co ${rel} pushd ${rel} for pkg in $(find . -mindepth 1 -maxdepth 1 -type d ! -name ".osc"); do pushd ${pkg} for dist in ${dists}; do dist=$(echo ${dist} | sed -e 's/:/_/g') osc build \ --no-verify \ --download-api-only \ --disable-cpio-bulk-download \ --local-package \ --preload \ ${dist} \ *.spec || osc build \ --no-verify \ --download-api-only \ --disable-cpio-bulk-download \ --local-package \ --preload \ ${dist} \ *.dsc done popd done done