예제 #1
0
 def insert_full_parse(self, section):
     c = self.current
     listfile = self.manager.listfile(c.name, c.type, section)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     table = fullparse_tablename(c.name, c.type, section)
     fptable = FullParseCursor(self.conn, table)
     for package, data in full_parse(listfile).items():
         fptable.set_package(package)
         fptable.update(data)
예제 #2
0
 def insert_full_parse(self, section):
     c = self.current
     listfile = self.manager.listfile(c.name, c.type, section)
     if not isfile(listfile):
         raise NoFileError, 'file not there'
     table = fullparse_tablename(c.name, c.type, section)
     fptable = FullParseCursor(self.conn, table)
     for package, data in full_parse(listfile).items():
         fptable.set_package(package)
         fptable.update(data)
예제 #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'
예제 #4
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'
예제 #5
0
 def full_parse(self, section=None):
     listfile = self._listfile_(section)
     return full_parse(listfile)
예제 #6
0
 def get_available(self):
     return full_parse(self._join('available'))
예제 #7
0
 def get_status(self):
     return full_parse(self._join('status'))
예제 #8
0
 def full_parse(self, section=None):
     listfile = self._listfile_(section)
     return full_parse(listfile)
예제 #9
0
 def get_available(self):
     return full_parse(self._join('available'))
예제 #10
0
 def get_status(self):
     return full_parse(self._join('status'))