From 48bab4b65417d12dac1e2ef61f9b059fc5dabdcc Mon Sep 17 00:00:00 2001 From: andyq Date: Fri, 20 Dec 2002 13:00:05 +0000 Subject: Should create links for installed dependant packages again --- (limited to 'noncore/settings') 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) buflen --; lineStr = lineStr.left( buflen ); emit outputText( lineStr ); + + // check if we are installing dependant packages + if ( option == "install" || option == "reinstall" ) + { + // Need to keep track of any dependant packages that get installed + // so that we can create links to them as necessary + if ( lineStr.startsWith( "Installing " ) ) + { + int start = lineStr.find( " " ) + 1; + int end = lineStr.find( " ", start ); + QString *package = new QString( lineStr.mid( start, end-start ) ); + dependantPackages->append( package ); + } + } + qDebug(lineStr); buffer[0] = '\0'; } -- cgit v0.9.0.2