-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 7 |
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 | |||
@@ -106,16 +106,21 @@ void DataManager :: loadServers() | |||
106 | destList.push_back( d ); | 106 | destList.push_back( d ); |
107 | } | 107 | } |
108 | } | 108 | } |
109 | } | 109 | } |
110 | fclose( fp ); | 110 | fclose( fp ); |
111 | 111 | ||
112 | // Go through the server destination list and add root, cf and card if they | 112 | // Go through the server destination list and add root, cf and card if they |
113 | // don't already exist | 113 | // don't already exist |
114 | /* AQ - commented out as if you don't have a CF or SD card in then | ||
115 | * this causes IPKG to try to create directories on non existant devices | ||
116 | * (which of course fails), gives a nasty error message and can cause ipkg | ||
117 | * to seg fault. | ||
118 | * | ||
114 | vector<Destination>::iterator dit; | 119 | vector<Destination>::iterator dit; |
115 | bool foundRoot = false; | 120 | bool foundRoot = false; |
116 | bool foundCF = false; | 121 | bool foundCF = false; |
117 | bool foundCard = false; | 122 | bool foundCard = false; |
118 | for ( dit = destList.begin() ; dit != destList.end() ; ++dit ) | 123 | for ( dit = destList.begin() ; dit != destList.end() ; ++dit ) |
119 | { | 124 | { |
120 | if ( dit->getDestinationPath() == "/" ) | 125 | if ( dit->getDestinationPath() == "/" ) |
121 | foundRoot = true; | 126 | foundRoot = true; |
@@ -132,17 +137,17 @@ void DataManager :: loadServers() | |||
132 | if ( !foundRoot ) | 137 | if ( !foundRoot ) |
133 | destList.push_back( Destination( "root", "/" ) ); | 138 | destList.push_back( Destination( "root", "/" ) ); |
134 | if ( !foundCF ) | 139 | if ( !foundCF ) |
135 | destList.push_back( Destination( "cf", "/mnt/cf" ) ); | 140 | destList.push_back( Destination( "cf", "/mnt/cf" ) ); |
136 | if ( !foundCF ) | 141 | if ( !foundCF ) |
137 | destList.push_back( Destination( "card", "/mnt/card" ) ); | 142 | destList.push_back( Destination( "card", "/mnt/card" ) ); |
138 | #endif | 143 | #endif |
139 | #endif | 144 | #endif |
140 | 145 | */ | |
141 | vector<Server>::iterator it; | 146 | vector<Server>::iterator it; |
142 | for ( it = serverList.begin() ; it != serverList.end() ; ++it ) | 147 | for ( it = serverList.begin() ; it != serverList.end() ; ++it ) |
143 | reloadServerData( it->getServerName() ); | 148 | reloadServerData( it->getServerName() ); |
144 | } | 149 | } |
145 | 150 | ||
146 | void DataManager :: reloadServerData( const char *serverName ) | 151 | void DataManager :: reloadServerData( const char *serverName ) |
147 | { | 152 | { |
148 | Server *s = getServer( serverName ); | 153 | Server *s = getServer( serverName ); |