1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

Merge pull request #1452 from adrianschroeter/productcompose

productcompose: Support building with updateinfo.xml data
This commit is contained in:
Daniel Mach 2024-01-02 08:05:25 +01:00 committed by GitHub
commit 31059f0f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -275,7 +275,9 @@ class Pac:
else:
release = self.mp['release'].encode()
if self.mp['name'].startswith('container:'):
if self.mp['binary'] == 'updateinfo.xml':
canonname = 'updateinfo.xml'
elif self.mp['name'].startswith('container:'):
canonname = self.mp['name'] + '.tar.xz'
elif pacsuffix == 'deb':
canonname = debquery.DebQuery.filename(self.mp['name'].encode(), epoch, self.mp['version'].encode(), release, self.mp['arch'].encode())
@ -1251,6 +1253,9 @@ def main(apiurl, store, opts, argv):
# source fullfilename
sffn = i.fullfilename
filename = sffn.split("/")[-1]
if i.name == 'updateinfo.xml':
adir = 'updateinfo'
filename = i.package + ':' + i.repoarch + ':updateinfo.xml'
# project/repo
if i.name.startswith("container:"):
prdir = "containers/" + pdir + "/" + rdir

View File

@ -6972,7 +6972,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
descr = glob.glob('*.spec') + glob.glob('*.dsc') + glob.glob('*.kiwi') + glob.glob('*.livebuild') + \
glob.glob('PKGBUILD') + glob.glob('build.collax') + glob.glob('Dockerfile') + \
glob.glob('fissile.yml') + glob.glob('appimage.yml') + glob.glob('Chart.yaml') + \
glob.glob('*flatpak.yaml') + glob.glob('*flatpak.yml') + glob.glob('*flatpak.json')
glob.glob('*flatpak.yaml') + glob.glob('*flatpak.yml') + glob.glob('*flatpak.json') + \
glob.glob('*.productcompose')
# FIXME:
# * request repos from server and select by build type.

View File

@ -74,6 +74,9 @@ class PackageQuery:
from . import debquery
pkgquery = debquery.DebQuery(f)
extra_tags = extra_debtags
elif magic == b'<update':
f.close()
return None
elif magic[:5] == b'<?xml':
f.close()
return None