author | tille <tille> | 2002-07-05 12:05:38 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-05 12:05:38 (UTC) |
commit | a332e5e111b0c9ef8eb0836876a4ff386c660514 (patch) (side-by-side diff) | |
tree | fe327e0daace261a53d69a28c99355d63ce9012a | |
parent | 1ba879b2be7ad4ae390a351922bd476474d5dce7 (diff) | |
download | opie-a332e5e111b0c9ef8eb0836876a4ff386c660514.zip opie-a332e5e111b0c9ef8eb0836876a4ff386c660514.tar.gz opie-a332e5e111b0c9ef8eb0836876a4ff386c660514.tar.bz2 |
fixed linking bug
-rw-r--r-- | noncore/unsupported/oipkg/pmipkg.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index 4a8a389..d29036b 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp @@ -177,23 +177,26 @@ QStringList* PmIpkg::getList( QString packFileName, QString d ) { Config cfg( "oipkg", Config::User ); cfg.setGroup( "Common" ); QString statusDir = cfg.readEntry( "statusDir", "" ); } QString packFileDir = dest+"/"+statusDir+"/info/"+packFileName+".list"; - QFile f( packFileName ); + QFile f( packFileDir ); + qDebug("Try to open %s", packFileDir.latin1()); if ( ! f.open(IO_ReadOnly) ) { out( "Could not open:\n"+packFileDir ); f.close(); packFileDir = "/"+statusDir+"/info/"+packFileName+".list"; f.setName( packFileDir ); + qDebug("Try to open %s", packFileDir.latin1()); if ( ! f.open(IO_ReadOnly) ) { qDebug(" Panik! Could not open"+packFileDir); out( "Could not open:\n"+packFileDir+"\n Panik!" ); + return (QStringList*)0; } } QStringList *fileList = new QStringList(); QTextStream t( &f ); while ( !t.eof() ) { |