~mmcg069/software-center/Bug830691

« back to all changes in this revision

Viewing changes to softwarecenter/db/appfilter.py

  • Committer: Matthew McGowan
  • Date: 2011-08-22 09:26:30 UTC
  • mfrom: (2131.1.28 software-center)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110822092630-yqbaa7zhljgo4zqe
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                not doc.get_value(XapianValues.ARCHIVE_CHANNEL) == AVAILABLE_FOR_PURCHASE_MAGIC_CHANNEL_NAME):
63
63
                return False
64
64
        if self.installed_only:
65
 
            if (not pkgname in self.cache[pkgname] or
 
65
            if (not pkgname in self.cache or
66
66
                not self.cache[pkgname].is_installed):
67
67
                return False
68
68
        if self.not_installed_only: