Example #1
0
def read_depotdb_xml (file, dep):
  depotdb_path = os.path.join (dep.local_path, file)

  try:
    xml = objectify.parse (depotdb_path)
  except XMLSyntaxError, msg:
    raise XMLParseError ('Syntax error while parsing ' + depotdb_path +
                         ', the following error was encountered: ' +
                         str (msg))
Example #2
0
 def unpack (self, dry_run, verbose, callback, dest = None,
             filelist = None, list_files = False):
   # extract all sources files if at least one does not exist.
   # we could extract source files one at a time but this
   # consumes time skipping over the un-processed XML source
   # entries.
   try:
     xml = objectify.parse (self.path)
   except XMLSyntaxError, msg:
     raise XMLParseError ('Syntax error while parsing ' +
                          os.path.normpath (self.path) +
                          ', the following error was encountered: ' +
                          str (msg))