Compare commits

..

2 Commits

Author SHA1 Message Date
Felix Yan
02b1e7e3c6 Merge branch 'commitpkg' into 'master'
commitpkg: error out when there is no package to upload

See merge request archlinux/devtools!112
2025-05-19 22:00:10 +00:00
Felix Yan
e179df93a8 commitpkg: error out when there is no package to upload
When calling commitpkg without providing a package to upload, it often
indicates an error in scripts (like failed to build the package
correctly, or transfer error, etc).
2022-08-26 16:48:57 +03:00

View File

@@ -120,14 +120,6 @@ if (( ${#validpgpkeys[@]} != 0 )); then
git add --force -- keys/pgp/*
fi
# Allow us to disable REUSE
_RUN_REUSE=${_RUN_REUSE:-1}
if ((_RUN_REUSE)); then
reuse download
reuse lint
git add --force -- LICENSES/*
fi
# find files which should be under source control
needsversioning=(PKGBUILD)
for s in "${source[@]}"; do
@@ -305,4 +297,6 @@ if [[ ${#uploads[*]} -gt 0 ]]; then
unset new_uploads
msg 'Uploading all package and signature files'
rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || die
else
die 'No package to upload'
fi