summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-02 23:21:51 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-02 23:21:51 -0400
commitaa0e029fce58e0f8b1a5508069450ebbfa9a9c2e (patch)
tree475ea99c351984345afff7246045e431bb180b67
parent6385605e0ba5a53ae1662efb3efa3aa35155e3df (diff)
db-update: add some stricter checks from Arch Linux upstream
-rwxr-xr-xdb-update12
1 files changed, 12 insertions, 0 deletions
diff --git a/db-update b/db-update
index a1552c0..b769b5d 100755
--- a/db-update
+++ b/db-update
@@ -43,9 +43,21 @@ for repo in "${repos[@]}"; do
if ! check_pkgfile "${pkg}"; then
die "Package %s is not consistent with its meta data" "${repo}/${pkg##*/}"
fi
+ if "${REQUIRE_SIGNATURE}" && ! pacman-key -v "${pkg}.sig" >/dev/null 2>&1; then
+ die "Package %s does not have a valid signature" "${repo}/${pkg##*/}"
+ fi
if ! check_pkgrepos "${pkg}"; then
die "Package %s already exists in another repository" "${repo}/${pkg##*/}"
fi
+ if ! check_packager "${pkg}"; then
+ die "Package ${repo}/${pkg##*/} does not have a valid packager"
+ fi
+ if ! check_buildinfo "${pkg}"; then
+ die "Package ${repo}/${pkg##*/} does not have a .BUILDINFO file"
+ fi
+ if ! check_builddir "${pkg}"; then
+ die "Package ${repo}/${pkg##*/} was not built in a chroot"
+ fi
done
# This is fucking obnoxious
#if ! check_splitpkgs ${repo} "${pkgs[@]}"; then