summaryrefslogtreecommitdiffstats
path: root/aurweb/git/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'aurweb/git/update.py')
-rwxr-xr-xaurweb/git/update.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index 929b254e..3c9c3785 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -303,7 +303,11 @@ def main(): # noqa: C901
error['line'], err))
exit(1)
- metadata_pkgbase = metadata['pkgbase']
+ try:
+ metadata_pkgbase = metadata['pkgbase']
+ except KeyError as e:
+ die_commit('invalid .SRCINFO, does not contain a pkgbase (is the file empty?)',
+ str(commit.id))
if not re.match(repo_regex, metadata_pkgbase):
die_commit('invalid pkgbase: {:s}'.format(metadata_pkgbase),
str(commit.id))