(self, force=False)
return False
Obtain random mirror, download, verify and install
Obtain random mirror, download, verify and install
Obtain random mirror download verify and install
def _install_logic(self, force=False):
        """Obtain random mirror, download, verify and install"""
        for url in self._get_mirrors(self._tarball):
            Msg().out("Info: install using:", url, l=Msg.VER)
            tarballfile = self._get_file(url)
            (status, version) = self._verify_version(tarballfile)
            if status:
                Msg().out("Info: installing udockertools", version)
                status = self._install(tarballfile)
            elif force:
                Msg().out("Info: forcing install of udockertools", version)
                status = self._install(tarballfile)
            else:
                Msg().err("Error: version is", version, "for", url, l=Msg.VER)
            if "://" in url and tarballfile:
                FileUtil(tarballfile).remove()
            if status:
                return True
        return False
def _install_logic ( self , force = False ) : for url in self . _get_mirrors ( self . _tarball ) : Msg ( ) . out ( "Info: install using:" , url , l = Msg . VER ) tarballfile = self . _get_file ( url ) ( status , version ) = self . _verify_version ( tarballfile ) if status : Msg ( ) . out ( "Info: installing udockertools" , version ) status = self . _install ( tarballfile ) elif force : Msg ( ) . out ( "Info: forcing install of udockertools" , version ) status = self . _install ( tarballfile ) else : Msg ( ) . err ( "Error: version is" , version , "for" , url , l = Msg . VER ) if "://" in url and tarballfile : FileUtil ( tarballfile ) . remove ( ) if status : return True return False