author | drw <drw> | 2004-07-31 16:57:09 (UTC) |
---|---|---|
committer | drw <drw> | 2004-07-31 16:57:09 (UTC) |
commit | bc85059dbd265feb3424215a2c1a4818af7d069e (patch) (side-by-side diff) | |
tree | 6200d0188ac374741fdcd0019e68227a5a966892 | |
parent | b099a3dd18571fcbd5b1211f18ac111ec39f9ce8 (diff) | |
download | opie-bc85059dbd265feb3424215a2c1a4818af7d069e.zip opie-bc85059dbd265feb3424215a2c1a4818af7d069e.tar.gz opie-bc85059dbd265feb3424215a2c1a4818af7d069e.tar.bz2 |
Read ipkg.conf even when /etc/ipkg does not exist, found by Bernardo...thanks\!
-rw-r--r-- | noncore/settings/packagemanager/oipkg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/packagemanager/oipkg.cpp b/noncore/settings/packagemanager/oipkg.cpp index 87a30bb..eca5861 100644 --- a/noncore/settings/packagemanager/oipkg.cpp +++ b/noncore/settings/packagemanager/oipkg.cpp @@ -464,16 +464,17 @@ void OIpkg::loadConfiguration() QStringList confFiles; QDir confDir( IPKG_CONF_DIR ); if ( confDir.exists() ) { confDir.setNameFilter( "*.conf" ); confDir.setFilter( QDir::Files ); confFiles = confDir.entryList( "*.conf", QDir::Files ); + } confFiles << IPKG_CONF; QStringList::Iterator lastFile = confFiles.end(); for ( QStringList::Iterator it = confFiles.begin(); it != lastFile; ++it ) { // Create absolute file path if necessary QString absFile = (*it); if ( !absFile.startsWith( "/" ) ) @@ -531,17 +532,16 @@ void OIpkg::loadConfiguration() m_confInfo->append( new OConfItem( type, name, value, active ) ); } } } f.close(); } } - } // Load Ipkg execution options from application configuration file if ( m_config ) { m_config->setGroup( "Ipkg" ); m_ipkgExecOptions = m_config->readNumEntry( "ExecOptions", m_ipkgExecOptions ); m_ipkgExecVerbosity = m_config->readNumEntry( "Verbosity", m_ipkgExecVerbosity ); } |