def init(label, fileoutput): conarypk = ConaryPk() cli = conarypk.cli cfg = conarypk.cfg log.info("Attempting to retrieve repository data for %s" % label) try: pkgs = getPackagesFromLabel(cfg,cli,label) troves = conarypk.repos.getTroves(pkgs,withFiles=False) nodes = generate_xml(troves,label) cElementTree.ElementTree(nodes).write(fileoutput) log.info("Successfully wrote XML data for label %s into file %s" % (label, fileoutput)) except: log.error("Failed to gather data from the repository")
def init(label, fileoutput): conarypk = ConaryPk() cli = conarypk.cli cfg = conarypk.cfg log.info("Attempting to retrieve repository data for %s" % label) try: pkgs = getPackagesFromLabel(cfg, cli, label) troves = conarypk.repos.getTroves(pkgs, withFiles=False) nodes = generate_xml(troves, label) cElementTree.ElementTree(nodes).write(fileoutput) log.info("Successfully wrote XML data for label %s into file %s" % (label, fileoutput)) except: log.error("Failed to gather data from the repository")
def warning(self, msg, *args, **kwargs): e = msg %args self.error.append(e) log.error("<<<<<<<<<<<<<<<<<<<<<<<<<<<<") log.error( args )
def warning(self, msg, *args, **kwargs): e = msg %args log.error("<<<<<<<<<<<<<<<<<<<<<<<<<<<<") log.error(e) self.backend.error(ERROR_DEP_RESOLUTION_FAILED, e, False )