summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp
index 29bf40d..51eca8b 100644
--- a/noncore/settings/aqpkg/ipkg.cpp
+++ b/noncore/settings/aqpkg/ipkg.cpp
@@ -121,5 +121,5 @@ bool Ipkg :: runIpkg( )
- // If we are removing packages and make links option is selected
+ // If we are removing, reinstalling or upgrading packages and make links option is selected
// create the links
- if ( option == "remove" || option == "reinstall" )
+ if ( option == "remove" || option == "reinstall" || option == "upgrade" )
{
@@ -143,3 +143,3 @@ bool Ipkg :: runIpkg( )
- if ( option == "install" || option == "reinstall" )
+ if ( option == "install" || option == "reinstall" || option == "upgrade" )
{
@@ -524,4 +524,4 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
}
- else
- emit outputText( QString( "Directory " ) + linkFile + " already exists" );
+// else
+// emit outputText( QString( "Directory " ) + linkFile + " already exists" );
@@ -554,5 +554,8 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
bool rc = d.rmdir( linkFile, true );
- text = (rc ? "Removed " : "Failed to remove ");
- text += linkFile;
- emit outputText( text );
+ if ( rc )
+ {
+ text = (rc ? "Removed " : "Failed to remove ");
+ text += linkFile;
+ emit outputText( text );
+ }
}