Ignores DEBs that are already in the repo.

This is needed when adding architectures for an existing version.
main
Tommie Gannert 2023-07-30 15:10:22 +02:00
parent 94e4d95122
commit c4a45291c6
1 changed files with 8 additions and 3 deletions

View File

@ -332,9 +332,14 @@ jobs:
arch=${codename##* }
arch=${arch%%/*}
codename=${codename% *}
name="$(dpkg-deb --field "$path" package)"
if [ ! -e "debian/pool/contrib/i/$name/$(basename "$path")" ]; then
reprepro -A "$arch" --export=silent-never -b debian includedeb "$codename" "$path"
codenames+=( "$codename" )
archs+=( "$arch" )
else
echo 'Package $name already exists. Silently ignored.'
fi
done
(IFS=$'\n' ; echo "codenames=$(echo "${codenames[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")
(IFS=$'\n' ; echo "archs=$(echo "${archs[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")