Prevent packages being uploaded with "Unknown Packager"
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
acbbe8cb90
commit
addea828fe
17
commitpkg.in
17
commitpkg.in
|
@ -87,6 +87,23 @@ while getopts ':l:a:s:f' flag; do
|
||||||
done
|
done
|
||||||
shift $(( OPTIND - 1 ))
|
shift $(( OPTIND - 1 ))
|
||||||
|
|
||||||
|
# check packages have the packager field set
|
||||||
|
for _arch in ${arch[@]}; do
|
||||||
|
if [[ -n $commit_arch && ${_arch} != "$commit_arch" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
for _pkgname in ${pkgname[@]}; do
|
||||||
|
fullver=$(get_full_version $_pkgname)
|
||||||
|
|
||||||
|
if pkgfile=$(shopt -s nullglob;
|
||||||
|
getpkgfile "${PKGDEST+$PKGDEST/}$_pkgname-$fullver-${_arch}".pkg.tar.?z); then
|
||||||
|
if grep -q "packager = Unknown Packager" <(bsdtar -xOqf $pkgfile .PKGINFO); then
|
||||||
|
die "PACKAGER was not set when building package"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
if [[ -z $server ]]; then
|
if [[ -z $server ]]; then
|
||||||
case "$repo" in
|
case "$repo" in
|
||||||
core|extra|testing|staging|kde-unstable|gnome-unstable)
|
core|extra|testing|staging|kde-unstable|gnome-unstable)
|
||||||
|
|
Loading…
Reference in New Issue