[aur-dev] [PATCH] git-update: Error out if PKGBUILD is missing
Lukas Fleischer
lfleischer at archlinux.org
Thu Jul 16 12:10:55 UTC 2015
Fixes FS#45646.
Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
git-interface/git-update.py | 5 +++--
1 file 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]
--
2.4.6
More information about the aur-dev
mailing list