From a332e5e111b0c9ef8eb0836876a4ff386c660514 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 05 Jul 2002 12:05:38 +0000 Subject: fixed linking bug --- 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 @@ -180,17 +180,20 @@ QStringList* PmIpkg::getList( QString packFileName, QString d ) 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(); -- cgit v0.9.0.2