(self, cmdp)
return self.STATUS_ERROR
install: install udocker and its tools
        install [options]
        --force                    :force reinstall
        --purge                    :remove files (be careful)
install: install udocker and its tools
        install [options]
        --force                    :force reinstall
        --purge                    :remove files (be careful)
install : install udocker and its tools install [ options ] -- force : force reinstall -- purge : remove files ( be careful )
def do_install(self, cmdp):
        """
        install: install udocker and its tools
        install [options]
        --force                    :force reinstall
        --purge                    :remove files (be careful)
        """
        if cmdp is not None:
            force = cmdp.get("--force")
            purge = cmdp.get("--purge")
            if cmdp.missing_options():  # syntax error
                return self.STATUS_ERROR
        else:
            force = False
            purge = False

        utools = UdockerTools(self.localrepo)
        if purge:
            utools.purge()

        if utools.install(force):
            return self.STATUS_OK

        return self.STATUS_ERROR
def do_install ( self , cmdp ) : if cmdp is not None : force = cmdp . get ( "--force" ) purge = cmdp . get ( "--purge" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR else : force = False purge = False utools = UdockerTools ( self . localrepo ) if purge : utools . purge ( ) if utools . install ( force ) : return self . STATUS_OK return self . STATUS_ERROR