(self, force=False)
return False
Get the udocker tools tarball and install the binaries
Get the udocker tools tarball and install the binaries
Get the udocker tools tarball and install the binaries
def install(self, force=False):
        """Get the udocker tools tarball and install the binaries"""
        if self.is_available() and not force:
            return True

        if not self._autoinstall and not force:
            Msg().out("Warning: installation missing and autoinstall disabled",
                      l=Msg.WAR)
            return None

        if not self._tarball:
            Msg().out("Info: UDOCKER_TARBALL not set, installation skipped",
                      l=Msg.VER)
            return True

        Msg().out("Info: udocker command line interface", __version__)
        Msg().out("Info: searching for udockertools",
                  self._tarball_release, l=Msg.INF)
        retry = self._installretry
        while  retry:
            if self._install_logic(force):
                self.get_installinfo()
                Msg().out("Info: installation of udockertools successful")
                return True

            retry = retry - 1
            Msg().err("Error: installation failure retrying ...", l=Msg.VER)

        self._instructions()
        self.get_installinfo()
        Msg().err("Error: installation of udockertools failed")
        return False
def install ( self , force = False ) : if self . is_available ( ) and not force : return True if not self . _autoinstall and not force : Msg ( ) . out ( "Warning: installation missing and autoinstall disabled" , l = Msg . WAR ) return None if not self . _tarball : Msg ( ) . out ( "Info: UDOCKER_TARBALL not set, installation skipped" , l = Msg . VER ) return True Msg ( ) . out ( "Info: udocker command line interface" , __version__ ) Msg ( ) . out ( "Info: searching for udockertools" , self . _tarball_release , l = Msg . INF ) retry = self . _installretry while retry : if self . _install_logic ( force ) : self . get_installinfo ( ) Msg ( ) . out ( "Info: installation of udockertools successful" ) return True retry = retry - 1 Msg ( ) . err ( "Error: installation failure retrying ..." , l = Msg . VER ) self . _instructions ( ) self . get_installinfo ( ) Msg ( ) . err ( "Error: installation of udockertools failed" ) return False