Skip to content

Commit

Permalink
Fixes - #84 - ignore flag is now respected
Browse files Browse the repository at this point in the history
  • Loading branch information
sean797 committed May 8, 2017
1 parent 50c5d47 commit 121647f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tracer/resources/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,14 @@ def trace_affected(self, user=None):
p = self._apply_rules(p)
a = self._applications.find(p.name())

if a.name not in affected:
if self._erased and not self._PACKAGE_MANAGER.provided_by(a.name):
a.type = Applications.TYPES["ERASED"]
affected[a.name] = AffectedApplication(a._attributes)
affected[a.name].affected_instances = AffectedProcessesCollection()
self._call_hook(affected[a.name])
affected[a.name].affected_instances.append(p)
if not a.ignore:
if a.name not in affected:
if self._erased and not self._PACKAGE_MANAGER.provided_by(a.name):
a.type = Applications.TYPES["ERASED"]
affected[a.name] = AffectedApplication(a._attributes)
affected[a.name].affected_instances = AffectedProcessesCollection()
self._call_hook(affected[a.name])
affected[a.name].affected_instances.append(p)
except NoSuchProcess:
pass

Expand Down

0 comments on commit 121647f

Please sign in to comment.