summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp
index eacef76..368548b 100644
--- a/noncore/settings/aqpkg/ipkg.cpp
+++ b/noncore/settings/aqpkg/ipkg.cpp
@@ -187,33 +187,31 @@ int Ipkg :: executeIpkgCommand( QString &cmd, const QString option )
187 lineStr = line; 187 lineStr = line;
188 lineStr=lineStr.left( lineStr.length()-1 ); 188 lineStr=lineStr.left( lineStr.length()-1 );
189 189
190 if ( lineStr != lineStrOld ) 190 if ( lineStr != lineStrOld )
191 { 191 {
192 //See if we're finished 192 //See if we're finished
193 if ( option == "install" || option == "reinstall" ) 193 if ( option == "install" || option == "reinstall" )
194 { 194 {
195 // Need to keep track of any dependant packages that get installed 195 // Need to keep track of any dependant packages that get installed
196 // so that we can create links to them as necessary 196 // so that we can create links to them as necessary
197 if ( lineStr.startsWith( "Installing " ) ) 197 if ( lineStr.startsWith( "Installing " ) )
198 { 198 {
199 cout << "LineStr = " << lineStr << endl;
200 int start = lineStr.find( " " ) + 1; 199 int start = lineStr.find( " " ) + 1;
201 int end = lineStr.find( " ", start ); 200 int end = lineStr.find( " ", start );
202 QString *package = new QString( lineStr.mid( start, end-start ) ); 201 QString *package = new QString( lineStr.mid( start, end-start ) );
203 dependantPackages->append( package ); 202 dependantPackages->append( package );
204 cout << "installing dependant package <" << *package << ">" << endl;
205 } 203 }
206 } 204 }
207 205
208 if ( option == "update" ) 206 if ( option == "update" )
209 { 207 {
210 if (lineStr.contains("Updated list")) 208 if (lineStr.contains("Updated list"))
211 ret = true; 209 ret = true;
212 } 210 }
213 else if ( option == "download" ) 211 else if ( option == "download" )
214 { 212 {
215 if (lineStr.contains("Downloaded")) 213 if (lineStr.contains("Downloaded"))
216 ret = true; 214 ret = true;
217 } 215 }
218 else 216 else
219 { 217 {