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% *}
|
||||||
|
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"
|
reprepro -A "$arch" --export=silent-never -b debian includedeb "$codename" "$path"
|
||||||
codenames+=( "$codename" )
|
codenames+=( "$codename" )
|
||||||
archs+=( "$arch" )
|
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