summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/server.cpp b/noncore/settings/aqpkg/server.cpp
index 06b0863..d4fa439 100644
--- a/noncore/settings/aqpkg/server.cpp
+++ b/noncore/settings/aqpkg/server.cpp
@@ -162,19 +162,18 @@ void Server :: readPackageFile( Server *local, bool clearAll, bool installingToR
162 162
163 bool newPackage = true; 163 bool newPackage = true;
164 do 164 do
165 { 165 {
166 in.getline( line, 1000 ); 166 in.getline( line, 1000 );
167 if ( in.eof() ) 167 if ( in.eof() )
168 break; 168 continue;
169 169
170 k[0] = '\0'; 170 k[0] = '\0';
171 v[0] = '\0'; 171 v[0] = '\0';
172 172
173 if ( sscanf( line, "%[^:]: %[^\n]", k, v ) < 2 ) 173 sscanf( line, "%[^:]: %[^\n]", k, v );
174 break;
175 174
176 key = k; 175 key = k;
177 value = v; 176 value = v;
178 key = key.stripWhiteSpace(); 177 key = key.stripWhiteSpace();
179 value = value.stripWhiteSpace(); 178 value = value.stripWhiteSpace();
180 if ( key == "Package" && newPackage ) 179 if ( key == "Package" && newPackage )