From 2c3c8417fb69ab84140e9b9b0ce17abf1e95229c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 6 Apr 2017 05:56:28 +0200 Subject: git-update: Check for missing pkgname entries Reject commits containing .SRCINFO files without any pkgname entries. Suggested-by: Bruno Pagani Signed-off-by: Lukas Fleischer --- aurweb/git/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aurweb/git/update.py b/aurweb/git/update.py index 3b84eb5d..532db92d 100755 --- a/aurweb/git/update.py +++ b/aurweb/git/update.py @@ -308,6 +308,9 @@ def main(): die_commit('invalid pkgbase: {:s}'.format(metadata_pkgbase), str(commit.id)) + if not metadata['packages']: + die_commit('missing pkgname entry', str(commit.id)) + for pkgname in set(metadata['packages'].keys()): pkginfo = srcinfo.utils.get_merged_package(pkgname, metadata) -- cgit v1.2.3-24-g4f1b