Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void Kconfigure::slotExecuteCheckInstallRoot (  )  [private, slot]

Make root checkinstall

Do a Systemwide Root Checkinstall

Assemble our checkinstall script

Definition at line 612 of file kconfigure.cpp.

References execute(), filePath, headerHTML(), logHtml, logOn, logString, and time.

Referenced by slotSelectExecuteInstall().

{

      KConfig *config = KGlobal::config();
      config->setGroup("Checkinstall");
      QString ExeChechInstall = config->readEntry( "Checkinstall Command", "/usr/sbin/checkinstall" );
      
      QString pakForm = "R";
      bool isRPM = config->readBoolEntry( "RPM Package", true );
      bool isDEB = config->readBoolEntry( "Debian Package", false );
      bool isSLK = config->readBoolEntry( "Slackware Package", false );
      
      if(isDEB) { pakForm = "D"; }
      else if (isSLK) { pakForm = "S"; }
      else if (isRPM) { pakForm = "R"; }
      else { pakForm = "R"; }
      
      QString elfBin = config->readBoolEntry( "Strip Elf Binaries", true ) ? "yes" : "no";
      QString backUp = config->readBoolEntry( "Backup Overwrite Files", true ) ? "yes" : "no";
      QString customOptions = config->readEntry( "Custom Options", "--pkgrelease=1.kcfg" );

      /** Assemble our checkinstall script */
      execute( "kdesu -t ' cd " + filePath + " && " + ExeChechInstall + " -y" + pakForm + " --strip=" + elfBin + " --backup=" + backUp + " " + customOptions + "'" );

      if( logOn )
      {
            time.start();
            if( logHtml )
                  headerHTML( i18n("checkinstall (root user)") );
            else
                  logString += ">> " + i18n("checkinstall (root user)") + "\n\n";
                  logString += ">> " + i18n("kdesu -t ' cd " + filePath + " && " + ExeChechInstall + " -y" + pakForm + " --strip=" + elfBin + " --backup=" + backUp + " " + customOptions + "'") + "\n\n";
      }
}


Generated by  Doxygen 1.6.0   Back to index