summaryrefslogtreecommitdiffstats
path: root/git-interface
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 /git-interface
parent29bffe64ad324ee64376123230ef75b9ba2a5d1a (diff)
downloadaur-38b1bbe78df3a518f0688e50f1d6361221b95ea1.tar.gz
aur-38b1bbe78df3a518f0688e50f1d6361221b95ea1.tar.xz
git-update: Error out if PKGBUILD is missing
Fixes FS#45646. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'git-interface')
-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 ba65cab6..935fa5bb 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]