Skip to content

Commit

Permalink
Cast packages to PackagesCollection because of unique_newest()
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Jul 29, 2015
1 parent 7cd22bf commit ba11633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracer/resources/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from tracer.resources.system import System
from tracer.resources.FilenameCleaner import FilenameCleaner
from tracer.resources.processes import AffectedProcess
from tracer.resources.collections import ApplicationsCollection, AffectedProcessesCollection
from tracer.resources.collections import ApplicationsCollection, AffectedProcessesCollection, PackagesCollection
from tracer.resources.exceptions import UnsupportedDistribution
from tracer.resources.applications import Applications

Expand Down Expand Up @@ -73,7 +73,7 @@ def __init__(self, package_manager, rules, applications, memory=None, hooks_obse
def _modified_packages(self):
"""Returns list of packages what tracer should care about"""
if self.specified_packages and self.now:
return self.specified_packages
return PackagesCollection(self.specified_packages)

timestamp = self.timestamp if self.timestamp else System.boot_time()
packages = self._PACKAGE_MANAGER.packages_newer_than(timestamp)
Expand Down

0 comments on commit ba11633

Please sign in to comment.