Skip to content

Commit

Permalink
initial support for obsproduct build type
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 15, 2023
1 parent 7fff395 commit 36b1537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,10 @@ def main(apiurl, store, opts, argv):
build_type = 'flatpak'
if build_type not in ['spec', 'dsc', 'kiwi', 'arch', 'collax', 'livebuild',
'simpleimage', 'snapcraft', 'appimage', 'docker', 'helm',
'podman', 'fissile', 'flatpak', 'preinstallimage']:
'podman', 'fissile', 'flatpak', 'preinstallimage', 'obsproduct']:
raise oscerr.WrongArgs(
'Unknown build type: \'%s\'. '
'Build description should end in .spec, .dsc, .kiwi, or .livebuild. '
'Build description should end in .spec, .dsc, .kiwi, .obsproduct or .livebuild. '
'Or being named PKGBUILD, build.collax, simpleimage, appimage.yml, '
'Chart.yaml, snapcraft.yaml, flatpak.json, flatpak.yml, flatpak.yaml, '
'preinstallimage or Dockerfile' % build_type)
Expand Down Expand Up @@ -1224,7 +1224,7 @@ def __str__(self):
buildargs.append('--oldpackages=%s' % old_pkg_dir)

# Make packages from buildinfo available as repos for kiwi/docker/fissile
if build_type in ('kiwi', 'docker', 'podman', 'fissile'):
if build_type in ('kiwi', 'docker', 'podman', 'fissile', 'obsproduct'):

Check warning on line 1227 in osc/build.py

View check run for this annotation

Codecov / codecov/patch

osc/build.py#L1227

Added line #L1227 was not covered by tests
if os.path.exists('repos'):
shutil.rmtree('repos')
if os.path.exists('containers'):
Expand Down

0 comments on commit 36b1537

Please sign in to comment.