Commit 4c605a56 authored by Florian Pritz's avatar Florian Pritz
Browse files

Make pkginfo license key optional

Some (meta) packages like kdeaccessibility-meta do not have a license
set and right now this triggers an exception. Fix it by just setting an
empty value like archweb does.

Signed-off-by: Florian Pritz's avatarFlorian Pritz <>
parent ed70229b
......@@ -72,6 +72,8 @@ class ArchiveUploader:
last_pkg = sorted(filter(lambda x: not x.endswith('.sig'), all_files))[-1]
pkginfo = self.extract_pkginfo(last_pkg)
pkgdesc = pkginfo['pkgdesc'] if 'pkgdesc' in pkginfo else ''
if 'license' not in pkginfo:
pkginfo['license'] = ''
metadata['description'] = ArchiveUploader.DESCRIPTION.format(pkgname=pkgname, pkgdesc=pkgdesc, url=pkginfo['url'], license=pkginfo['license'])
metadata['rights'] = 'License: ' + pkginfo['license']
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