git-update: Error out if PKGBUILD is missing

Fixes FS#45646.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-07-16 14:09:55 +02:00
parent 29bffe64ad
commit 38b1bbe78d

View file

@ -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]