mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-update: Check for missing install and source files
Suggested-by: Marcel Korpel <marcel.korpel@gmail.com> Suggested-by: carstene1ns <arch@carsten-teibes.de> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
b44411fb53
commit
451e60d91d
1 changed files with 11 additions and 0 deletions
|
@ -236,6 +236,17 @@ for commit in walker:
|
||||||
die_commit('%s field too long: %s' % (field, pkginfo[field]),
|
die_commit('%s field too long: %s' % (field, pkginfo[field]),
|
||||||
commit.id)
|
commit.id)
|
||||||
|
|
||||||
|
for field in ('install', 'changelog'):
|
||||||
|
if field in pkginfo and not pkginfo[field] in commit.tree:
|
||||||
|
die_commit('missing %s file: %s' % (field, pkginfo[field]),
|
||||||
|
commit.id)
|
||||||
|
|
||||||
|
for fname in pkginfo['source']:
|
||||||
|
if "://" in fname or "lp:" in fname:
|
||||||
|
continue
|
||||||
|
if not fname in commit.tree:
|
||||||
|
die_commit('missing source file: %s' % (fname), commit.id)
|
||||||
|
|
||||||
srcinfo_raw = repo[repo[sha1_new].tree['.SRCINFO'].id].data.decode()
|
srcinfo_raw = repo[repo[sha1_new].tree['.SRCINFO'].id].data.decode()
|
||||||
srcinfo_raw = srcinfo_raw.split('\n')
|
srcinfo_raw = srcinfo_raw.split('\n')
|
||||||
srcinfo = aurinfo.ParseAurinfoFromIterable(srcinfo_raw)
|
srcinfo = aurinfo.ParseAurinfoFromIterable(srcinfo_raw)
|
||||||
|
|
Loading…
Add table
Reference in a new issue