Skip to content

Commit

Permalink
add support for highly experimental native appimage.yml support
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 14, 2017
1 parent 6b91b28 commit 3e2bb0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 4 additions & 2 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e2bb0e

Please sign in to comment.