diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-06 05:56:28 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-06 05:57:57 +0200 |
commit | 2c3c8417fb69ab84140e9b9b0ce17abf1e95229c (patch) | |
tree | b9a3fcbabefe4f43cfbe733cc266cf49098f42b6 /aurweb | |
parent | a7606d0e1be37a565ca4dd48efca49a34314970c (diff) | |
download | aur-2c3c8417fb69ab84140e9b9b0ce17abf1e95229c.tar.gz aur-2c3c8417fb69ab84140e9b9b0ce17abf1e95229c.tar.xz |
git-update: Check for missing pkgname entries
Reject commits containing .SRCINFO files without any pkgname entries.
Suggested-by: Bruno Pagani <bruno.n.pagani@gmail.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb')
-rwxr-xr-x | aurweb/git/update.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |