Skip to content

Commit

Permalink
treecompose: Don't traceback if rpm-ostree command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
james-antill committed Dec 9, 2014
1 parent 9dba6c3 commit a753865
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/py/rpmostreecompose/treecompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ def compose_tree(self):
if self.check_groups:
rpmostreecmd.append('--check-groups=' + self.check_groups)

subprocess.check_call(rpmostreecmd)
try:
subprocess.check_call(rpmostreecmd)
except subprocess.CalledProcessError:
return (origrev, origrev)

_,newrev = self.repo.resolve_rev(self.ref, True)
return (origrev, newrev)

Expand Down

0 comments on commit a753865

Please sign in to comment.