author | drw <drw> | 2003-03-29 01:13:02 (UTC) |
---|---|---|
committer | drw <drw> | 2003-03-29 01:13:02 (UTC) |
commit | 22e941e4cbc9e8906287d1e352b66092c6a84c0d (patch) (unidiff) | |
tree | 2704ea40f9ee926c2734eb25c7165852c024c136 | |
parent | f42edeac768082ec8d7716a17c82507496dd7b47 (diff) | |
download | opie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.zip opie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.tar.gz opie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.tar.bz2 |
Fix for reading feed's Package file works this time. However, this is temporary until I re-do this part of the code this weekend (don't like the way it works).
-rw-r--r-- | noncore/settings/aqpkg/server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/server.cpp b/noncore/settings/aqpkg/server.cpp index d4fa439..64a9c26 100644 --- a/noncore/settings/aqpkg/server.cpp +++ b/noncore/settings/aqpkg/server.cpp | |||
@@ -141,38 +141,38 @@ void Server :: readLocalIpks( Server *local ) | |||
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | // build local packages | 143 | // build local packages |
144 | buildLocalPackages( local ); | 144 | buildLocalPackages( local ); |
145 | } | 145 | } |
146 | 146 | ||
147 | void Server :: readPackageFile( Server *local, bool clearAll, bool installingToRoot, Destination *dest ) | 147 | void Server :: readPackageFile( Server *local, bool clearAll, bool installingToRoot, Destination *dest ) |
148 | { | 148 | { |
149 | ifstream in( packageFile ); | 149 | ifstream in( packageFile ); |
150 | if ( !in.is_open() ) | 150 | if ( !in.is_open() ) |
151 | return; | 151 | return; |
152 | 152 | ||
153 | char line[1001]; | 153 | char line[5001]; |
154 | char k[21]; | 154 | char k[21]; |
155 | char v[1001]; | 155 | char v[5001]; |
156 | QString key; | 156 | QString key; |
157 | QString value; | 157 | QString value; |
158 | 158 | ||
159 | if ( clearAll ) | 159 | if ( clearAll ) |
160 | cleanUp(); | 160 | cleanUp(); |
161 | Package *currPackage = 0; | 161 | Package *currPackage = 0; |
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, 5000 ); |
167 | if ( in.eof() ) | 167 | if ( in.eof() ) |
168 | continue; | 168 | continue; |
169 | 169 | ||
170 | k[0] = '\0'; | 170 | k[0] = '\0'; |
171 | v[0] = '\0'; | 171 | v[0] = '\0'; |
172 | 172 | ||
173 | sscanf( line, "%[^:]: %[^\n]", k, v ); | 173 | sscanf( line, "%[^:]: %[^\n]", k, v ); |
174 | 174 | ||
175 | key = k; | 175 | key = k; |
176 | value = v; | 176 | value = v; |
177 | key = key.stripWhiteSpace(); | 177 | key = key.stripWhiteSpace(); |
178 | value = value.stripWhiteSpace(); | 178 | value = value.stripWhiteSpace(); |