-rw-r--r-- | noncore/settings/aqpkg/ipkg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp index 1efe030..407abe9 100644 --- a/noncore/settings/aqpkg/ipkg.cpp +++ b/noncore/settings/aqpkg/ipkg.cpp | |||
@@ -409,25 +409,25 @@ QStringList* Ipkg :: getList( const QString &packageFilename, const QString &des | |||
409 | cout << "Try to open " << packageFileDir << endl; | 409 | cout << "Try to open " << packageFileDir << endl; |
410 | if ( !f.open(IO_ReadOnly) ) | 410 | if ( !f.open(IO_ReadOnly) ) |
411 | { | 411 | { |
412 | // Couldn't open from dest, try from / | 412 | // Couldn't open from dest, try from / |
413 | cout << "Could not open:" << packageFileDir << endl; | 413 | cout << "Could not open:" << packageFileDir << endl; |
414 | f.close(); | 414 | f.close(); |
415 | 415 | ||
416 | packageFileDir = "/usr/lib/ipkg/info/"+packageFilename+".list"; | 416 | packageFileDir = "/usr/lib/ipkg/info/"+packageFilename+".list"; |
417 | f.setName( packageFileDir ); | 417 | f.setName( packageFileDir ); |
418 | qDebug( "Try to open %s", packageFileDir.latin1() ); | 418 | qDebug( "Try to open %s", packageFileDir.latin1() ); |
419 | if ( ! f.open(IO_ReadOnly) ) | 419 | if ( ! f.open(IO_ReadOnly) ) |
420 | { | 420 | { |
421 | qDebug( "Could not open: %s", packageFileDir ); | 421 | qDebug( "Could not open: %s", packageFileDir.latin1() ); |
422 | emit outputText( QString( "Could not open :" ) + packageFileDir ); | 422 | emit outputText( QString( "Could not open :" ) + packageFileDir ); |
423 | return (QStringList*)0; | 423 | return (QStringList*)0; |
424 | } | 424 | } |
425 | } | 425 | } |
426 | QStringList *fileList = new QStringList(); | 426 | QStringList *fileList = new QStringList(); |
427 | QTextStream t( &f ); | 427 | QTextStream t( &f ); |
428 | while ( !t.eof() ) | 428 | while ( !t.eof() ) |
429 | *fileList += t.readLine(); | 429 | *fileList += t.readLine(); |
430 | 430 | ||
431 | f.close(); | 431 | f.close(); |
432 | return fileList; | 432 | return fileList; |
433 | } | 433 | } |