Skip to content

Commit

Permalink
Fix archive download of noarch packages (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Aug 19, 2024
1 parent 52f3739 commit 8a40b22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,15 @@ while read package; do
src_name=$(echo ${src_fields} | cut -f1 -d" ")
for pkg_arch in ${arch} noarch; do
url="https://kojipkgs.fedoraproject.org/packages/${src_name}/${pkg_version}/${pkg_suffix}/${pkg_arch}/${package}.${pkg_arch}.rpm"
url_noarch="https://kojipkgs.fedoraproject.org/packages/${src_name}/${pkg_version}/${pkg_suffix}/noarch/${package}.noarch.rpm"
if wget -q ${url} -O downloads/${package}.${pkg_arch}.rpm; then
break
fi
if wget -q ${url_noarch} -O downloads/${package}.noarch.rpm; then
break
fi
echo "- failed to download ${url}"
rm downloads/${package}.${pkg_arch}.rpm
rm -f downloads/${package}.*.rpm
done

if is_downloaded ${package}; then
Expand Down

0 comments on commit 8a40b22

Please sign in to comment.