Skip to content

Commit

Permalink
wiminfo(): simplify returncode check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Mar 24, 2016
1 parent 02b762a commit a1d92f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kiwi/wimlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ def wiminfo(wim_path):
cmd = [WIMLIB_IMAGEX_PATH, 'info', wim_path, str(index)]
p = Popen(cmd, stdout=PIPE, stderr=PIPE)
output, err = p.communicate()

rc = p.returncode
if rc is not 0: break
if p.returncode != 0: break

properties = {}
image_info = output.decode('UTF-8').split('\n')
Expand Down

0 comments on commit a1d92f8

Please sign in to comment.