Exemplo n.º 1
0
 def parse_section(self, section=None):
     listfile = self._listfile_(section)
     debug(listfile)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     if self.source.type == 'deb':
         return parse_packages(listfile)
     elif self.source.type == 'deb-src':
         return parse_sources(listfile)
     else:
         raise Error, 'bad source type'
Exemplo n.º 2
0
 def parse_section(self, section=None):
     listfile = self._listfile_(section)
     debug(listfile)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     if self.source.type == 'deb':
         return parse_packages(listfile)
     elif self.source.type == 'deb-src':
         return parse_sources(listfile)
     else:
         raise Error, 'bad source type'
Exemplo n.º 3
0
 def parse_section(self, section=None):
     listfile = self._listfile_(section)
     debug(listfile)
     if not isfile(listfile):
         raise NoFileError, "file not there"
     if self.source.type == "deb":
         return parse_packages(listfile)
     elif self.source.type == "deb-src":
         return parse_sources(listfile)
     else:
         raise RuntimeError, "bad source type"