lib/gettor/packages.py
def preparePackages(self):
        """Go through the configured package list and make some sanity checks.
           Does the configured file exist? Does the split package exist?
        """
        logging.debug("Checking package configuration..")
        for (pack, (regexSingle, regexSplit)) in self.packageList.items():
            fileSingle = self.getDistFileFromRegex(regexSingle)
            if fileSingle == "":
                logging.error("Can't match `single' for %s" % pack)
                logging.error("Please fix this. I will stop here.")
                return False
            fileSplit = self.getDistFileFromRegex(regexSplit)
            if regexSplit != "unavailable" and fileSplit == "":
                logging.error("Can't match `split' for %s" % pack)
                logging.error("Please fix this. I will stop here.")
                return False
            logging.debug("Ok: %s" % pack)

        logging.debug("Checks passed. Package configuration looks good.")
        return True
Go through the configured package list and make some sanity checks.
           Does the configured file exist? Does the split package exist?
        
Go through the configured package list and make some sanity checks.
Does the configured file exist.
Go through the configured package list and make some sanity checks . Does the configured file exist .
def preparePackages(self):
        logging.debug("Checking package configuration..")
        for (pack, (regexSingle, regexSplit)) in self.packageList.items():
            fileSingle = self.getDistFileFromRegex(regexSingle)
            if fileSingle == "":
                logging.error("Can't match `single' for %s" % pack)
                logging.error("Please fix this. I will stop here.")
                return False
            fileSplit = self.getDistFileFromRegex(regexSplit)
            if regexSplit != "unavailable" and fileSplit == "":
                logging.error("Can't match `split' for %s" % pack)
                logging.error("Please fix this. I will stop here.")
                return False
            logging.debug("Ok: %s" % pack)
        logging.debug("Checks passed. Package configuration looks good.")
        return True
def preparePackages ( self ) : logging . debug ( "Checking package configuration.." ) for ( pack , ( regexSingle , regexSplit ) ) in self . packageList . items ( ) : fileSingle = self . getDistFileFromRegex ( regexSingle ) if fileSingle == "" : logging . error ( "Can't match `single' for %s" % pack ) logging . error ( "Please fix this. I will stop here." ) return False fileSplit = self . getDistFileFromRegex ( regexSplit ) if regexSplit != "unavailable" and fileSplit == "" : logging . error ( "Can't match `split' for %s" % pack ) logging . error ( "Please fix this. I will stop here." ) return False logging . debug ( "Ok: %s" % pack ) logging . debug ( "Checks passed. Package configuration looks good." ) return True
Go through the configured package list and make some sanity checks.
Go through the configured package list and make some sanity checks .
"""Go through the configured package list and make some sanity checks.
           Does the configured file exist? Does the split package exist?
        """
self