ACC SHELL

Path : /usr/share/doc/packages/yast2-packager/autodocs/
File Upload :
Current File : //usr/share/doc/packages/yast2-packager/autodocs/clients__sw_single.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>
 <head>
  <title>
sw_single.ycp
</title>
  <style type="text/css">body { background-color: #c8c8c8 }
h1 { color: #e00000 }
table { width: 100%/ border: none }
img { border: 0px }
.sigbox { background-color: #ffc080; border: solid thin #f96500 }
.sig { font: larger monospace }
.padtbl { background-color: #ffc080; padding: 10px; margin: 10px }
/* arrow */
.a { color: #606060 }
/* type, parameter */
.t, .p { color: #c05000 }
.pbox { width: 20% }
.descbox { }
.right { align: right }
.header {}
.footer { clear: both}
.menu { width: 10%; float: left }
.main { width: 90%; float: left }
</style>
 </head>
 <body>
  <div class="header">
   <i>YaST2 Developers Documentation:</i>
   <a href="index.html">
    <b>
sw_single.ycp
</b>
   </a>
   <img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
   <hr />
  </div>
  <div class="menu">
   <img alt="YaST" src="/usr/share/doc/packages/yast2-devtools/images/yast2-half.png" />
   <br />
   <br />
   <a href="index.html">functions</a>
   <br />
   <a href="files.html">files</a>
   <br />
   <a href="intro.html">intro</a>
  </div>
  <div class="main">
   <div class="sigbox">
    <table class="padtbl">
     <tr>
      <td>
       <h1>
sw_single.ycp
</h1>
      </td>
     </tr>
     <tr>
      <td></td>
     </tr>
     <tr>
      <td>
       <ul>
        <li>Gabriele Strattner (gs@suse.de)</li>
        <li>			Klaus Kaempf <kkaempf@suse.de></li>
        <li> Purpose: 		contains dialog loop for workflows:</li>
        <li>	"Install/Remove software"</li>
       </ul>
      </td>
     </tr>
     <tr>
      <td>
       <p>This module has an unstable interface.</p>
      </td>
     </tr>
    </table>
    <table class="padtbl">
     <tr>
      <td>

 Note: sw_single accepts a map parameter: $[ "dialog_type" : symbol,
   "repo_mgmt" : boolean ]

 "dialog_type" can be `patternSelector, `searchMode, `summaryMode
 "repo_mgmt" enables "Repositories" -> "Repository Manager..." menu option

       <h1>Imports</h1>
       <ul>
        <li>CommandLine</li>
        <li>Confirm</li>
        <li>Directory</li>
        <li>FileUtils</li>
        <li>GetInstArgs</li>
        <li>Installation</li>
        <li>Kernel</li>
        <li>Mode</li>
        <li>PackageCallbacks</li>
        <li>PackageInstallation</li>
        <li>PackageLock</li>
        <li>PackageSlideShow</li>
        <li>PackageSystem</li>
        <li>Packages</li>
        <li>PackagesUI</li>
        <li>Popup</li>
        <li>Progress</li>
        <li>Report</li>
        <li>SlideShow</li>
        <li>SlideShowCallbacks</li>
        <li>String</li>
        <li>URL</li>
        <li>Wizard</li>
       </ul>
       <h1>Local Functions</h1>
       <ul>
        <li>
         <a href="#CanBeUpdated">CanBeUpdated (string package)</a>
        </li>
        <li>
         <a href="#VersionALtB">VersionALtB (string a_version, string b_version)</a>
        </li>
       </ul>
      </td>
     </tr>
    </table>
   </div>
   <p />
   <div class="sigbox">
    <span class="sig" id="VersionALtB">local
     <b>VersionALtB (string a_version, string b_version)
      <span class="a"> -&gt; </span>
      <span class="t">boolean</span>
     </b>
    </span>
   </div>
   <p>
 Function checks two versions of installed rpm and decides
 whether the second one is newer than the first one. This
 function ignores non-numerical values in versions.
 Version and Release parts are merged!
 FIXME make a binding to librpm.</p>
   <dl>
    <dt>
     <b>Parameters:</b>
    </dt>
    <dd>
     <table>
      <tr>
       <td class="pbox">
        <span class="p">a_version</span>
       </td>
       <td class="descbox"></td>
      </tr>
      <tr>
       <td class="pbox">
        <span class="p">b_version</span>
       </td>
       <td class="descbox"></td>
      </tr>
     </table>
    </dd>
   </dl>
   <dl>
    <dt>
     <b>Return value:</b>
    </dt>
    <dd>
     <table>
      <tr>
       <td class="pbox">
        <span class="t" />
       </td>
       <td class="descbox">true if the second one is newer than the first one</td>
      </tr>
     </table>
    </dd>
   </dl>
   <div class="sigbox">
    <span class="sig" id="CanBeUpdated">local
     <b>CanBeUpdated (string package)
      <span class="a"> -&gt; </span>
      <span class="t">boolean</span>
     </b>
    </span>
   </div>
   <p>
 Check if there is an uninstalled package of the same name with a
 higher version. Otherwise we would forcefully reinstall it. #222757#c9</p>
   <dl>
    <dt>
     <b>Parameters:</b>
    </dt>
    <dd>
     <table>
      <tr>
       <td class="pbox">
        <span class="p">package</span>
       </td>
       <td class="descbox"></td>
      </tr>
     </table>
    </dd>
   </dl>
  </div>
  <div class="footer">
   <hr />
   <i>YaST2 Developers Documentation</i>
   <img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
  </div>
 </body>
</html>

ACC SHELL 2018