summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/datamgr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp
index 7f724af..b9ce227 100644
--- a/noncore/settings/aqpkg/datamgr.cpp
+++ b/noncore/settings/aqpkg/datamgr.cpp
@@ -108,12 +108,17 @@ void DataManager :: loadServers()
}
}
fclose( fp );
// Go through the server destination list and add root, cf and card if they
// don't already exist
+ /* AQ - commented out as if you don't have a CF or SD card in then
+ * this causes IPKG to try to create directories on non existant devices
+ * (which of course fails), gives a nasty error message and can cause ipkg
+ * to seg fault.
+ *
vector<Destination>::iterator dit;
bool foundRoot = false;
bool foundCF = false;
bool foundCard = false;
for ( dit = destList.begin() ; dit != destList.end() ; ++dit )
{
@@ -134,13 +139,13 @@ void DataManager :: loadServers()
if ( !foundCF )
destList.push_back( Destination( "cf", "/mnt/cf" ) );
if ( !foundCF )
destList.push_back( Destination( "card", "/mnt/card" ) );
#endif
#endif
-
+*/
vector<Server>::iterator it;
for ( it = serverList.begin() ; it != serverList.end() ; ++it )
reloadServerData( it->getServerName() );
}
void DataManager :: reloadServerData( const char *serverName )