-rw-r--r-- | noncore/settings/aqpkg/ipkg.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp index d5157eb..f8513e4 100644 --- a/noncore/settings/aqpkg/ipkg.cpp +++ b/noncore/settings/aqpkg/ipkg.cpp | |||
@@ -65,7 +65,7 @@ bool Ipkg :: runIpkg( ) | |||
65 | } | 65 | } |
66 | cmd += "ipkg"; | 66 | cmd += "ipkg"; |
67 | 67 | ||
68 | if ( option != "update" && option != "download" ) | 68 | if ( option != "update" && option != "download" && option != "upgrade" ) |
69 | { | 69 | { |
70 | cmd += " -dest "+ destination; | 70 | cmd += " -dest "+ destination; |
71 | cmd += " -force-defaults"; | 71 | cmd += " -force-defaults"; |
@@ -97,7 +97,10 @@ bool Ipkg :: runIpkg( ) | |||
97 | cmd += IPKG_CONF; | 97 | cmd += IPKG_CONF; |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | cmd += " " + option + " " + package + " 2>&1"; | 100 | cmd += " " + option; |
101 | if ( option != "upgrade" ) | ||
102 | cmd += " " + package; | ||
103 | cmd += " 2>&1"; | ||
101 | 104 | ||
102 | qApp->processEvents(); | 105 | qApp->processEvents(); |
103 | 106 | ||
@@ -118,6 +121,7 @@ bool Ipkg :: runIpkg( ) | |||
118 | // Execute command | 121 | // Execute command |
119 | dependantPackages = new QList<QString>; | 122 | dependantPackages = new QList<QString>; |
120 | dependantPackages->setAutoDelete( true ); | 123 | dependantPackages->setAutoDelete( true ); |
124 | |||
121 | ret = executeIpkgCommand( cmd, option ); | 125 | ret = executeIpkgCommand( cmd, option ); |
122 | 126 | ||
123 | if ( option == "install" ) | 127 | if ( option == "install" ) |