summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/pmipkg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index 2ed86ee..bffad15 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -73,6 +73,8 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
cmd = "";
#endif
pvDebug( 3,"PmIpkg::runIpkg got dest="+dest);
+ if (!args.contains("update"))
+ {
if ( dest == "" )
cmd += " -dest "+settings->getDestinationName();
else
@@ -89,8 +91,10 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
if (installDialog->_force_remove->isChecked())
cmd += " -force-removal-of-essential-packages ";
}
+ } //!args.contains("update")
out( "Starting to "+ args+"\n");
+ qApp->processEvents();
cmd += args;
out( "running:\n"+cmd+"\n" );
pvDebug(2,"running:"+cmd);
@@ -433,9 +437,7 @@ void PmIpkg::removeLinks( const QString &dest )
void PmIpkg::update()
{
show();
- if ( runIpkg( "update" ) )
- runwindow->close();
- else out("An error occurred!\nPlease check the log.");
+ runIpkg( "update" );
}
void PmIpkg::out( QString o )