Skip to content
Snippets Groups Projects
Unverified Commit 7786cb27 authored by Ritesh Raj Sarraf's avatar Ritesh Raj Sarraf
Browse files

Only report the first occurence when mulitple results


The new `aptly` publisher, as a feature, allows multiple versions of
the package to be published in the same repository. Note that the
previous publisher, `reprepro` would publish only the single, latest version.

Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
parent a92794b6
Branches apertis/v2025dev1
No related tags found
1 merge request!56Only report the first occurence when mulitple results
Pipeline #570277 passed
......@@ -82,7 +82,7 @@ download_packages_description() {
get_package() {
local PACKAGE=$1
for SOURCE in ${SOURCES} ; do
FILENAME=$(sed -n -e "/^Package: ${PACKAGE}$/,/^Description:/ s/Filename: \(.*\)/\1/p" Packages.${RELEASE}.${ARCH}.${SOURCE})
FILENAME=$(sed -n -e "/^Package: ${PACKAGE}$/,/^Description:/ s/Filename: \(.*\)/\1/p" Packages.${RELEASE}.${ARCH}.${SOURCE}| head -n1)
BASEFILENAME=$(basename "${FILENAME}")
if [ -n "${FILENAME}" -a ! -f "${BASEFILENAME}" ]; then
wget https://repositories.apertis.org/apertis/${FILENAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment