-rw-r--r-- | noncore/settings/aqpkg/ipkg.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp index 7afe04f..29bf40d 100644 --- a/noncore/settings/aqpkg/ipkg.cpp +++ b/noncore/settings/aqpkg/ipkg.cpp | |||
@@ -311,6 +311,21 @@ void Ipkg::commandStdout(OProcess*, char *buffer, int buflen) | |||
311 | buflen --; | 311 | buflen --; |
312 | lineStr = lineStr.left( buflen ); | 312 | lineStr = lineStr.left( buflen ); |
313 | emit outputText( lineStr ); | 313 | emit outputText( lineStr ); |
314 | |||
315 | // check if we are installing dependant packages | ||
316 | if ( option == "install" || option == "reinstall" ) | ||
317 | { | ||
318 | // Need to keep track of any dependant packages that get installed | ||
319 | // so that we can create links to them as necessary | ||
320 | if ( lineStr.startsWith( "Installing " ) ) | ||
321 | { | ||
322 | int start = lineStr.find( " " ) + 1; | ||
323 | int end = lineStr.find( " ", start ); | ||
324 | QString *package = new QString( lineStr.mid( start, end-start ) ); | ||
325 | dependantPackages->append( package ); | ||
326 | } | ||
327 | } | ||
328 | |||
314 | qDebug(lineStr); | 329 | qDebug(lineStr); |
315 | buffer[0] = '\0'; | 330 | buffer[0] = '\0'; |
316 | } | 331 | } |