summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-07-16 14:09:55 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-07-16 14:09:55 +0200
commit38b1bbe78df3a518f0688e50f1d6361221b95ea1 (patch)
treeb0225d82f5ec32cc8ff9c5412552a008faa23f4c
parent29bffe64ad324ee64376123230ef75b9ba2a5d1a (diff)
downloadaurweb-38b1bbe78df3a518f0688e50f1d6361221b95ea1.tar.xz
git-update: Error out if PKGBUILD is missing
Fixes FS#45646. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-xgit-interface/git-update.py5
1 files changed, 3 insertions, 2 deletions
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]