summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2016-02-08 14:26:23 +0100
committerPierre Schmitz <pierre@archlinux.de>2016-02-16 19:31:01 +0100
commit282bf65c81e278b9237b4c202d325642bc0aa1a3 (patch)
tree98900724229a5f2ed8d8b3ed0b9bd7a62ad0372f /db-update
parent7f1c367f8d8504126caf3daa07a15d259fd072fa (diff)
downloaddbscripts-282bf65c81e278b9237b4c202d325642bc0aa1a3.tar.gz
dbscripts-282bf65c81e278b9237b4c202d325642bc0aa1a3.tar.xz
disallow packages not built in a chrootHEADmaster
double shame! This will detect both, packages with missing .BUILDINFO (built in non updated environments) and packages that are not built in a chroot at all (indicated by non default builddir). Signed-off-by: Levente Polyak <anthraxx@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update6
1 files changed, 6 insertions, 0 deletions
diff --git a/db-update b/db-update
index cdc35a5..db8cb91 100755
--- a/db-update
+++ b/db-update
@@ -54,6 +54,12 @@ for repo in ${repos[@]}; do
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
if ! check_splitpkgs ${repo} ${pkgs[@]}; then
die "Missing split packages for ${repo}"