From 24d774fb27375f0848d56603be873937d23209cc Mon Sep 17 00:00:00 2001 From: Zdenek Zambersky Date: Thu, 2 Aug 2018 16:50:35 +0200 Subject: [PATCH 1/4] rpms.sh: fixed search url for src rpms --- src/rpms.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rpms.sh b/src/rpms.sh index 66d9aa8..878abba 100644 --- a/src/rpms.sh +++ b/src/rpms.sh @@ -671,7 +671,12 @@ __INTERNAL_rpmGetNextUrl() { ;; koji,nvra.rpm) rlLogDebug "$FUNCNAME(): get rpm info" - local rpm_info=$($__INTERNAL_WGET -O - "$base_url/search?match=exact&type=rpm&terms=$N-$V-$R.$A.rpm") + local rpm_info + if [[ -n "$source" ]]; then + rpm_info=$($__INTERNAL_WGET -O - "$base_url/search?match=exact&type=rpm&terms=$N-$V-$R.src.rpm") + else + rpm_info=$($__INTERNAL_WGET -O - "$base_url/search?match=exact&type=rpm&terms=$N-$V-$R.$A.rpm") + fi [[ $? -ne 0 || -z "$rpm_info" ]] && { rlLogError "could not download rpm information" let res++ -- 2.17.1