lib/gettor/packages.py
def buildSplitPackages(self, pack, splitDir):
        """Build several zip files from a directory containing split files
        """

        zipDir = os.path.join(self.packDir, pack + ".split")
        gettor.utils.createDir(zipDir)
        for item in glob.glob(splitDir + "/*.part[0-9][0-9].*.asc"):
            packFile = item.replace(".asc", "")    
            ascFile = item
            zipFileName =  pack + "." + self.getPart(item) + ".z"
            zipFile = os.path.join(zipDir, zipFileName)

            gettor.utils.makeZip(zipFile, [packFile, ascFile])
            logging.debug("Zip file %s created successfully." % zipFile)

        logging.debug("All split files for package %s created." % pack)
        return True
Build several zip files from a directory containing split files
        
Build several zip files from a directory containing split files
Build several zip files from a directory containing split files
def buildSplitPackages(self, pack, splitDir):
        zipDir = os.path.join(self.packDir, pack + ".split")
        gettor.utils.createDir(zipDir)
        for item in glob.glob(splitDir + "/*.part[0-9][0-9].*.asc"):
            packFile = item.replace(".asc", "")    
            ascFile = item
            zipFileName =  pack + "." + self.getPart(item) + ".z"
            zipFile = os.path.join(zipDir, zipFileName)
            gettor.utils.makeZip(zipFile, [packFile, ascFile])
            logging.debug("Zip file %s created successfully." % zipFile)
        logging.debug("All split files for package %s created." % pack)
        return True
def buildSplitPackages ( self , pack , splitDir ) : zipDir = os . path . join ( self . packDir , pack + ".split" ) gettor . utils . createDir ( zipDir ) for item in glob . glob ( splitDir + "/*.part[0-9][0-9].*.asc" ) : packFile = item . replace ( ".asc" , "" ) ascFile = item zipFileName = pack + "." + self . getPart ( item ) + ".z" zipFile = os . path . join ( zipDir , zipFileName ) gettor . utils . makeZip ( zipFile , [ packFile , ascFile ] ) logging . debug ( "Zip file %s created successfully." % zipFile ) logging . debug ( "All split files for package %s created." % pack ) return True
Build several zip files from a directory containing split files
Build several zip files from a directory containing split files
"""Build several zip files from a directory containing split files
        """
self
pack
splitDir