Add 'aur' package loader
Build is green
Patch application report for D8174 (id=29524)
Rebasing onto 0913e11f69...
First, rewinding head to replay your work on top of it... Applying: WIP: Aur: Implements basic loader
Changes applied before test
commit 53019e6cc463dded390936ff95d67b6a3ff4e84e Author: Franck Bret <email@example.com> Date: Wed Aug 3 16:16:02 2022 +0200 WIP: Aur: Implements basic loader Add 'aur' package loader
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/816/ for more details.
Looks good overall.
can pkgdesc contain multiple lines? If yes, please add a test
can open as text if we always decode it anyway
according to https://wiki.archlinux.org/title/.SRCINFO , this isn't always true
this is more pythonic
unrelatedly, wouldn't it be simpler to make data of type Dict[str, List[str]], so the type check can be skipped? It would replace this:
if k in data: if type(data[k]) is not list: data[k] = [data[k]] data[k].append(v) else: data[k] = v
and make the output format simpler by having consistent value types.
What exception should this capture? It looks like loader.load() so neither assertion actually runs