-rw-r--r-- | noncore/settings/aqpkg/ipkg.cpp | 13 |
1 files changed, 8 insertions, 5 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,2 +554,4 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const bool rc = d.rmdir( linkFile, true ); + if ( rc ) + { text = (rc ? "Removed " : "Failed to remove "); @@ -560,2 +562,3 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const } + } |