From 38b1bbe78df3a518f0688e50f1d6361221b95ea1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 16 Jul 2015 14:09:55 +0200 Subject: git-update: Error out if PKGBUILD is missing Fixes FS#45646. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git-interface') diff --git a/git-interface/git-update.py b/git-interface/git-update.py index ba65cab..935fa5b 100755 --- a/git-interface/git-update.py +++ b/git-interface/git-update.py @@ -216,8 +216,9 @@ cur.execute("SELECT Name FROM PackageBlacklist") blacklist = [row[0] for row in cur.fetchall()] for commit in walker: - if not '.SRCINFO' in commit.tree: - die_commit("missing .SRCINFO", str(commit.id)) + for fname in ('.SRCINFO', 'PKGBUILD'): + if not fname in commit.tree: + die_commit("missing {:s}".format(fname), str(commit.id)) for treeobj in commit.tree: blob = repo[treeobj.id] -- cgit v1.2.3-70-g09d2