(self, tag)
return True
Create directory structure for an image TAG
        to be invoked after setup_imagerepo()
Create directory structure for an image TAG
        to be invoked after setup_imagerepo()
Create directory structure for an image TAG to be invoked after setup_imagerepo ()
def setup_tag(self, tag):
        """Create directory structure for an image TAG
        to be invoked after setup_imagerepo()
        """
        directory = self.cur_repodir + "/" + tag
        try:
            if not os.path.exists(directory):
                os.makedirs(directory)
            self.cur_tagdir = directory
            out_tag = open(directory + "/TAG", 'w')
        except (IOError, OSError):
            return False
        else:
            out_tag.write(self.cur_repodir + ":" + tag)
            out_tag.close()
        return True
def setup_tag ( self , tag ) : directory = self . cur_repodir + "/" + tag try : if not os . path . exists ( directory ) : os . makedirs ( directory ) self . cur_tagdir = directory out_tag = open ( directory + "/TAG" , 'w' ) except ( IOError , OSError ) : return False else : out_tag . write ( self . cur_repodir + ":" + tag ) out_tag . close ( ) return True