Skip to content

Commit

Permalink
Fix checking all eclasses with OtherEclass.
Browse files Browse the repository at this point in the history
The exception needs to be caught inside the loop, in order to allow
further iterations.
  • Loading branch information
mgorny committed Oct 10, 2013
1 parent 00e4b92 commit feba0cb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions smartliverebuild/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,21 @@ def loop_iter(blocking = False):
for vcs in pkg.inherits:
vcscl = getvcs(vcs, allowed)
if vcscl is not None:
vcs = vcscl(str(pkg.slotted_atom),
environ = pkg.environ,
opts = opts,
cache = cache)
processes.append(vcs)
loop_iter()
try:
vcs = vcscl(str(pkg.slotted_atom),
environ = pkg.environ,
opts = opts,
cache = cache)
except OtherEclass:
pass
else:
processes.append(vcs)
loop_iter()
except KeyboardInterrupt:
raise
except NonLiveEbuild as e:
out.s2('[%s]' % pkg.slotted_atom)
out.s3('%s%s%s' % (out.brown, e, out.reset))
except OtherEclass:
pass
except Exception as e:
if opts.debug:
raise
Expand Down

0 comments on commit feba0cb

Please sign in to comment.