-rw-r--r-- | noncore/settings/aqpkg/server.cpp | 5 |
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 @@ -156,31 +156,30 @@ void Server :: readPackageFile( Server *local, bool clearAll, bool installingToR QString key; QString value; if ( clearAll ) cleanUp(); Package *currPackage = 0; bool newPackage = true; do { in.getline( line, 1000 ); if ( in.eof() ) - break; + continue; k[0] = '\0'; v[0] = '\0'; - if ( sscanf( line, "%[^:]: %[^\n]", k, v ) < 2 ) - break; + sscanf( line, "%[^:]: %[^\n]", k, v ); key = k; value = v; key = key.stripWhiteSpace(); value = value.stripWhiteSpace(); if ( key == "Package" && newPackage ) { newPackage = false; currPackage = getPackage( value ); if ( !currPackage ) { |