(self, cmdp)
return self.STATUS_OK
mkrepo: create a local repository in a specified directory
        mkrepo <directory>
mkrepo: create a local repository in a specified directory
        mkrepo <directory>
mkrepo : create a local repository in a specified directory mkrepo <directory >
def do_mkrepo(self, cmdp):
        """
        mkrepo: create a local repository in a specified directory
        mkrepo <directory>
        """
        topdir = cmdp.get("P1")
        if cmdp.missing_options():
            return self.STATUS_ERROR
        if not os.path.exists(topdir):
            self.localrepo.setup(topdir)
            if not self.localrepo.create_repo():
                Msg().err("Error: localrepo creation failure: ", topdir)
                return self.STATUS_ERROR
        else:
            Msg().err("Error: localrepo directory already exists: ", topdir)
            return self.STATUS_ERROR

        return self.STATUS_OK
def do_mkrepo ( self , cmdp ) : topdir = cmdp . get ( "P1" ) if cmdp . missing_options ( ) : return self . STATUS_ERROR if not os . path . exists ( topdir ) : self . localrepo . setup ( topdir ) if not self . localrepo . create_repo ( ) : Msg ( ) . err ( "Error: localrepo creation failure: " , topdir ) return self . STATUS_ERROR else : Msg ( ) . err ( "Error: localrepo directory already exists: " , topdir ) return self . STATUS_ERROR return self . STATUS_OK