Beispiel #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'
Beispiel #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'
Beispiel #3
0
 def parse_section(self, name, type, section=None):
     listfile = self.listfile(name, type, section)
     debug(listfile)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     if type == 'deb':
         return full_parse(listfile)
     elif type == 'deb-src':
         return parse_sources(listfile)
     else:
         raise Error, 'bad source type'
Beispiel #4
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"
 def parse_section(self, name, type, section=None):
     listfile = self.listfile(name, type, section)
     debug(listfile)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     if type == 'deb':
         return full_parse(listfile)
     elif type == 'deb-src':
         return parse_sources(listfile)
     else:
         raise Error, 'bad source type'