Skip to content

Commit

Permalink
Fix an issue when the output SWIX has spaces in it
Browse files Browse the repository at this point in the history
  • Loading branch information
aristatodor committed Jun 2, 2021
1 parent 82597c5 commit e46dac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swixtools/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create( outputSwix=None, info=None, rpms=None, force=False ):

# '-0' means 'no compression'.
# '-j' means 'use basenames'.
subprocess.check_call( f'zip -0 -j {outputSwix}'.split() + filesToZip )
subprocess.check_call( [ 'zip', '-0', '-j', outputSwix ] + filesToZip )
except Exception as e:
sys.exit( f'Error occurred during generation of SWIX file: {e}\n' )
finally:
Expand Down

0 comments on commit e46dac6

Please sign in to comment.