(self, cmdp)
return True
Select the top directory of a local repository
Select the top directory of a local repository
Select the top directory of a local repository
def _cdrepo(self, cmdp):
        """Select the top directory of a local repository"""
        topdir = cmdp.get("P1")
        if cmdp.missing_options():               # syntax error
            return False

        if not FileUtil(topdir).isdir():
            Msg().out("Warning: localrepo directory is invalid: ",
                      topdir, l=Msg.WAR)
            return False

        self.localrepo.setup(topdir)
        return True
def _cdrepo ( self , cmdp ) : topdir = cmdp . get ( "P1" ) if cmdp . missing_options ( ) : # syntax error return False if not FileUtil ( topdir ) . isdir ( ) : Msg ( ) . out ( "Warning: localrepo directory is invalid: " , topdir , l = Msg . WAR ) return False self . localrepo . setup ( topdir ) return True