~mvo/software-center/reoder-lobby-screen

« back to all changes in this revision

Viewing changes to softwarecenter/db/categories.py

  • Committer: Michael Vogt
  • Date: 2012-08-17 07:05:05 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120817070505-60pn48gwhij1jzwn
test-fix: do not use cached categories in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        # build the string substituion support
248
248
        self._build_string_template_dict()
249
249
 
250
 
    def parse_applications_menu(self, datadir):
 
250
    def parse_applications_menu(self, datadir, use_cache=True):
251
251
        """ parse a application menu and return a list of Category objects """
252
 
        if datadir in self.CATEGORIES_PARSER_CACHE:
 
252
        if use_cache and datadir in self.CATEGORIES_PARSER_CACHE:
253
253
            return self.CATEGORIES_PARSER_CACHE[datadir]
254
254
        categories = []
255
255
        # we support multiple menu files and menu drop ins