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 <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent a7606d0e
......@@ -308,6 +308,9 @@ def main():
die_commit('invalid pkgbase: {:s}'.format(metadata_pkgbase),
if not metadata['packages']:
die_commit('missing pkgname entry', str(
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