@ -151,7 +151,7 @@ bool UpgradeWizard::checkForDistUpgrade(TQString url, bool developmentVersion) {
}
bool upgrade_available = false ;
KConfig * config = K Global: : config ( ) ;
KConfig * config = TDE Global: : config ( ) ;
config - > setGroup ( " General Settings " ) ;
TQString upgradeURL ;
upgradeURL = config - > readEntry ( TQString ( " upgradeURL " ) , url ) ;
@ -166,12 +166,12 @@ bool UpgradeWizard::checkForDistUpgrade(TQString url, bool developmentVersion) {
// need to spawn a process to call lsb_release -c -s
// to find out which version of kubuntu we are using
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " lsb_release " ;
* proc < < " -c " < < " -s " ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process* , char * , int ) ) ,
this , TQT_SLOT ( receiveDistroName ( K Process* , char * , int ) ) ) ;
proc - > start ( KProcess: : Block , K Process: : Stdout ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process* , char * , int ) ) ,
this , TQT_SLOT ( receiveDistroName ( TDE Process* , char * , int ) ) ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : Stdout ) ;
current_dist = 0 ;
TQPtrList < DistroEntry > * entry_list = parseMetafile ( temp_file_stream , distro_name ) ;
@ -390,7 +390,7 @@ TQPtrList<DistroEntry> *UpgradeWizard::parseMetafile( TQTextIStream *text_stream
// ** SLOTS ** //
void UpgradeWizard : : receiveDistroName ( K Process* , char * buffer , int buflen ) {
void UpgradeWizard : : receiveDistroName ( TDE Process* , char * buffer , int buflen ) {
distro_name = TQString : : fromAscii ( buffer , buflen - 1 ) ;
}
@ -404,11 +404,11 @@ void UpgradeWizard::launchDistUpdater() {
//tarDirectory->copyTo(upgrade_tool_location+"-extract");
tarFile . directory ( ) - > copyTo ( upgrade_tool_location + " -extract " , true ) ;
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
proc - > setWorkingDirectory ( upgrade_tool_location + " -extract " ) ;
* proc < < " python " < < upgrade_tool_location + " -extract/dist-upgrade.py " ;
* proc < < " --frontend " < < " DistUpgradeViewKDE " ;
proc - > start ( K Process: : DontCare ) ;
proc - > start ( TDE Process: : DontCare ) ;
// don't kill adept, it stops the app from running
// parentWidget()->close();
@ -486,11 +486,11 @@ void UpgradeWizard::fetchUpgradeToolSig() {
void UpgradeWizard : : verifyUpgradeTool ( ) {
// spawn a process to call gpg and verify the signature
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " gpg " ;
* proc < < " --keyring " < < " /etc/apt/trusted.gpg " < < " --verify " < < upgrade_tool_sig_location < < upgrade_tool_location ;
proc - > start ( KProcess: : Block , K Process: : Stdout ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : Stdout ) ;
// signature verification successful if gpg exist status = 0
if ( proc - > exitStatus ( ) = = 0 ) {
emit killErrorDialog ( ) ;