Commit 451e60d9 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-update: Check for missing install and source files

Suggested-by: default avatarMarcel Korpel <>
Suggested-by: default avatarcarstene1ns <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent b44411fb
......@@ -236,6 +236,17 @@ for commit in walker:
die_commit('%s field too long: %s' % (field, pkginfo[field]),
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]),
for fname in pkginfo['source']:
if "://" in fname or "lp:" in fname:
if not fname in commit.tree:
die_commit('missing source file: %s' % (fname),
srcinfo_raw = repo[repo[sha1_new].tree['.SRCINFO'].id].data.decode()
srcinfo_raw = srcinfo_raw.split('\n')
srcinfo = aurinfo.ParseAurinfoFromIterable(srcinfo_raw)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment