summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-16 18:54:05 (UTC)
committer andyq <andyq>2002-10-16 18:54:05 (UTC)
commit63d3299669d5147e16c56b016b0ee3cca2127a75 (patch) (side-by-side diff)
tree7663e1822b6898791ae97a18b0355cf84bda4d36
parent3cb6b6fab8d06b1be8f8c39560db9d3d88ce3921 (diff)
downloadopie-63d3299669d5147e16c56b016b0ee3cca2127a75.zip
opie-63d3299669d5147e16c56b016b0ee3cca2127a75.tar.gz
opie-63d3299669d5147e16c56b016b0ee3cca2127a75.tar.bz2
Added ability to upgrade all packages
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp8
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
@@ -64,9 +64,9 @@ bool Ipkg :: runIpkg( )
cmd += " ; ";
}
cmd += "ipkg";
- if ( option != "update" && option != "download" )
+ if ( option != "update" && option != "download" && option != "upgrade" )
{
cmd += " -dest "+ destination;
cmd += " -force-defaults";
@@ -96,9 +96,12 @@ bool Ipkg :: runIpkg( )
cmd += " -f ";
cmd += IPKG_CONF;
#endif
- cmd += " " + option + " " + package + " 2>&1";
+ cmd += " " + option;
+ if ( option != "upgrade" )
+ cmd += " " + package;
+ cmd += " 2>&1";
qApp->processEvents();
// If we are removing packages and make links option is selected
@@ -117,8 +120,9 @@ bool Ipkg :: runIpkg( )
// Execute command
dependantPackages = new QList<QString>;
dependantPackages->setAutoDelete( true );
+
ret = executeIpkgCommand( cmd, option );
if ( option == "install" )
{