Ejemplo n.º 1
0
 def current_pkgsourcelist(self):
     filename = utils.ext_ospath_join(self.path,
                                     'sources.d',
                                     self.dist.pkgsrc_name)
     if not os.path.exists(filename):    return None
     keylist = utils.ext_ospath_join(self.path,
                                     'sources.d',
                                     'keylist.txt')
     return filename, keylist
Ejemplo n.º 2
0
        def _read(query):
            dist = distro.Distribution().name
            if not dist:    return []

            query = utils.ext_ospath_join(self.path, dist, query)
            if not os.path.isfile(query):   return []
            return [ e for e in open(query, 'r').read().split('\n') if not e.startswith('#') and e]
Ejemplo n.º 3
0
        def _read(query):
            dist = distro.Distribution().name
            if not dist:    return []

            query = utils.ext_ospath_join(self.path, dist, query)
            if not os.path.isfile(query):   return []
            return [ e for e in open(query, 'r').read().split('\n') if not e.startswith('#') and e]
Ejemplo n.º 4
0
 def current_pkgsourcelist(self):
     filename = utils.ext_ospath_join(self.path, 'sources.d',
                                      self.dist.pkgsrc_name)
     if not os.path.exists(filename): return None
     keylist = utils.ext_ospath_join(self.path, 'sources.d', 'keylist.txt')
     return filename, keylist