mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 18:16:17 +01:00
add support for highly experimental native appimage.yml support
This commit is contained in:
parent
6b91b282b8
commit
3e2bb0ec1d
1
NEWS
1
NEWS
@ -1,5 +1,6 @@
|
||||
0.158
|
||||
- cat/less/blame command: default to expand to stay in sync with checkout
|
||||
- add support for highly experimental native appimage.yml support
|
||||
|
||||
0.157
|
||||
- add unpublish command (requires OBS 2.8)
|
||||
|
@ -501,11 +501,13 @@ def main(apiurl, opts, argv):
|
||||
build_type = 'arch'
|
||||
if os.path.basename(build_descr) == 'build.collax':
|
||||
build_type = 'collax'
|
||||
if os.path.basename(build_descr) == 'appimage.yml':
|
||||
build_type = 'appimage'
|
||||
if os.path.basename(build_descr) == 'snapcraft.yaml':
|
||||
build_type = 'snapcraft'
|
||||
if build_type not in ['spec', 'dsc', 'kiwi', 'arch', 'collax', 'livebuild', 'snapcraft']:
|
||||
if build_type not in ['spec', 'dsc', 'kiwi', 'arch', 'collax', 'livebuild', 'snapcraft', 'appimage']:
|
||||
raise oscerr.WrongArgs(
|
||||
'Unknown build type: \'%s\'. Build description should end in .spec, .dsc, .kiwi, .yaml or .livebuild.' \
|
||||
'Unknown build type: \'%s\'. Build description should end in .spec, .dsc, .kiwi, or .livebuild. Or being named PKGBUILD, build.collax, appimage.yml or snapcraft.yaml' \
|
||||
% build_type)
|
||||
if not os.path.isfile(build_descr):
|
||||
raise oscerr.WrongArgs('Error: build description file named \'%s\' does not exist.' % build_descr)
|
||||
|
Loading…
Reference in New Issue
Block a user