author | andyq <andyq> | 2002-10-16 18:54:05 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-16 18:54:05 (UTC) |
commit | 63d3299669d5147e16c56b016b0ee3cca2127a75 (patch) (unidiff) | |
tree | 7663e1822b6898791ae97a18b0355cf84bda4d36 | |
parent | 3cb6b6fab8d06b1be8f8c39560db9d3d88ce3921 (diff) | |
download | opie-63d3299669d5147e16c56b016b0ee3cca2127a75.zip opie-63d3299669d5147e16c56b016b0ee3cca2127a75.tar.gz opie-63d3299669d5147e16c56b016b0ee3cca2127a75.tar.bz2 |
Added ability to upgrade all packages
-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 | |||
@@ -67,3 +67,3 @@ bool Ipkg :: runIpkg( ) | |||
67 | 67 | ||
68 | if ( option != "update" && option != "download" ) | 68 | if ( option != "update" && option != "download" && option != "upgrade" ) |
69 | { | 69 | { |
@@ -99,3 +99,6 @@ bool Ipkg :: runIpkg( ) | |||
99 | 99 | ||
100 | cmd += " " + option + " " + package + " 2>&1"; | 100 | cmd += " " + option; |
101 | if ( option != "upgrade" ) | ||
102 | cmd += " " + package; | ||
103 | cmd += " 2>&1"; | ||
101 | 104 | ||
@@ -120,2 +123,3 @@ bool Ipkg :: runIpkg( ) | |||
120 | dependantPackages->setAutoDelete( true ); | 123 | dependantPackages->setAutoDelete( true ); |
124 | |||
121 | ret = executeIpkgCommand( cmd, option ); | 125 | ret = executeIpkgCommand( cmd, option ); |