Ignores DEBs that are already in the repo.
This is needed when adding architectures for an existing version.main
parent
94e4d95122
commit
c4a45291c6
|
@ -332,9 +332,14 @@ jobs:
|
||||||
arch=${codename##* }
|
arch=${codename##* }
|
||||||
arch=${arch%%/*}
|
arch=${arch%%/*}
|
||||||
codename=${codename% *}
|
codename=${codename% *}
|
||||||
reprepro -A "$arch" --export=silent-never -b debian includedeb "$codename" "$path"
|
name="$(dpkg-deb --field "$path" package)"
|
||||||
codenames+=( "$codename" )
|
if [ ! -e "debian/pool/contrib/i/$name/$(basename "$path")" ]; then
|
||||||
archs+=( "$arch" )
|
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
|
done
|
||||||
(IFS=$'\n' ; echo "codenames=$(echo "${codenames[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")
|
(IFS=$'\n' ; echo "codenames=$(echo "${codenames[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")
|
||||||
(IFS=$'\n' ; echo "archs=$(echo "${archs[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")
|
(IFS=$'\n' ; echo "archs=$(echo "${archs[*]}" | sort -u | xargs -r)" >>"$GITHUB_OUTPUT")
|
||||||
|
|
Loading…
Reference in New Issue