diff options
author | Arnstein Ressem <aressem@yahooinc.com> | 2022-06-15 14:32:12 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@yahooinc.com> | 2022-06-15 14:32:12 +0200 |
commit | ca069ec9ab4f7e6b25730ea6e4e373f69a608321 (patch) | |
tree | 84f42af4ada8b107a4f625a6a218a667beda62af /screwdriver | |
parent | 9f7b3b4211cdafd9f8fa680443bf7224d974b831 (diff) |
Dnf list src packages. Filter them out for the mirroring.
Diffstat (limited to 'screwdriver')
-rwxr-xr-x | screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh index 5dbabd329d4..ceddc9fe30b 100755 --- a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh +++ b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh @@ -1,13 +1,10 @@ #!/bin/bash # Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - set -euo pipefail readonly MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -yum install -y yum-utils &> /dev/null - # Copr repo file if [[ ! -f /etc/yum.repos.d/group_vespa-vespa-epel-7.repo ]]; then cat << 'EOF' > /etc/yum.repos.d/group_vespa-vespa-epel-7.repo @@ -36,7 +33,7 @@ fi readonly COPR_PACKAGES=$(mktemp) trap "rm -f $COPR_PACKAGES" EXIT -dnf list -q --disablerepo='*' --enablerepo=copr:copr.fedorainfracloud.org:group_vespa:vespa --showduplicates 'vespa*' | grep "Available Packages" -A 100000 | tail -n +2 | sed "s/\.x86_64\ */-/"| awk '{print $1}' > $COPR_PACKAGES +dnf list -q --disablerepo='*' --enablerepo=copr:copr.fedorainfracloud.org:group_vespa:vespa --showduplicates 'vespa*' | grep "Available Packages" -A 100000 | tail -n +2 | sed '/\.src\ */d' | sed 's/\.x86_64\ */-/' | awk '{print $1}' | grep -v '.src$' > $COPR_PACKAGES echo "Packages on Copr:" cat $COPR_PACKAGES |