Commit 2c3c8417 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-update: Check for missing pkgname entries



Reject commits containing .SRCINFO files without any pkgname entries.

Suggested-by: default avatarBruno Pagani <bruno.n.pagani@gmail.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent a7606d0e
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment