summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-22 19:30:26 (UTC)
committer andyq <andyq>2002-10-22 19:30:26 (UTC)
commit44a60b35b903b68f2f60f5ba29b84db1563dd9f3 (patch) (side-by-side diff)
tree64f2367de78806bbbb1ebf32bafc9dc9e56bb158
parentedcbb8b9bae3db2fae18ec6cd9efd202af4f913c (diff)
downloadopie-44a60b35b903b68f2f60f5ba29b84db1563dd9f3.zip
opie-44a60b35b903b68f2f60f5ba29b84db1563dd9f3.tar.gz
opie-44a60b35b903b68f2f60f5ba29b84db1563dd9f3.tar.bz2
Removed some debug output
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp2
1 files changed, 0 insertions, 2 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
@@ -175,54 +175,52 @@ int Ipkg :: executeIpkgCommand( QString &cmd, const QString option )
fp = popen( (const char *) cmd, "r");
if ( fp == NULL )
{
cout << "Couldn't execute " << cmd << "! err = " << fp << endl;
QString text;
text.sprintf( "Couldn't execute %s! See stdout for error code", (const char *)cmd );
emit outputText( text );
}
else
{
while ( fgets( line, sizeof line, fp) != NULL )
{
lineStr = line;
lineStr=lineStr.left( lineStr.length()-1 );
if ( lineStr != lineStrOld )
{
//See if we're finished
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 " ) )
{
- cout << "LineStr = " << lineStr << endl;
int start = lineStr.find( " " ) + 1;
int end = lineStr.find( " ", start );
QString *package = new QString( lineStr.mid( start, end-start ) );
dependantPackages->append( package );
- cout << "installing dependant package <" << *package << ">" << endl;
}
}
if ( option == "update" )
{
if (lineStr.contains("Updated list"))
ret = true;
}
else if ( option == "download" )
{
if (lineStr.contains("Downloaded"))
ret = true;
}
else
{
if (lineStr.contains("Done"))
ret = true;
}
emit outputText( lineStr );
}
lineStrOld = lineStr;
qApp->processEvents();
}