Diffstat (limited to 'noncore/unsupported/oipkg/packagelist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelist.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp index 5f79ec1..6f0b56f 100644 --- a/noncore/unsupported/oipkg/packagelist.cpp +++ b/noncore/unsupported/oipkg/packagelist.cpp | |||
@@ -185,48 +185,49 @@ void PackageList::readFileEntries( QString filename, QString dest ) | |||
185 | OipkgPackage *p = new OipkgPackage( packEntry, settings ); | 185 | OipkgPackage *p = new OipkgPackage( packEntry, settings ); |
186 | if ( p ) | 186 | if ( p ) |
187 | { | 187 | { |
188 | p->setDest( dest ); | 188 | p->setDest( dest ); |
189 | insertPackage( p ); | 189 | insertPackage( p ); |
190 | packEntry.clear(); | 190 | packEntry.clear(); |
191 | } | 191 | } |
192 | } | 192 | } |
193 | }else{ | 193 | }else{ |
194 | packEntry << line; | 194 | packEntry << line; |
195 | }; | 195 | }; |
196 | } | 196 | } |
197 | //there might be no nl at the end of the package file | 197 | //there might be no nl at the end of the package file |
198 | if ( ! packEntry.isEmpty() ) | 198 | if ( ! packEntry.isEmpty() ) |
199 | { | 199 | { |
200 | OipkgPackage *p = new OipkgPackage( packEntry, settings ); | 200 | OipkgPackage *p = new OipkgPackage( packEntry, settings ); |
201 | if ( p ) | 201 | if ( p ) |
202 | { | 202 | { |
203 | p->setDest( dest ); | 203 | p->setDest( dest ); |
204 | insertPackage( p ); | 204 | insertPackage( p ); |
205 | packEntry.clear(); | 205 | packEntry.clear(); |
206 | } | 206 | } |
207 | } | 207 | } |
208 | delete statusStream; | 208 | delete statusStream; |
209 | f.close(); | ||
209 | return; | 210 | return; |
210 | } | 211 | } |
211 | 212 | ||
212 | void PackageList::setSettings( PackageManagerSettings *s ) | 213 | void PackageList::setSettings( PackageManagerSettings *s ) |
213 | { | 214 | { |
214 | settings = s; | 215 | settings = s; |
215 | } | 216 | } |
216 | 217 | ||
217 | OipkgPackage* PackageList::getByName( QString n ) | 218 | OipkgPackage* PackageList::getByName( QString n ) |
218 | { | 219 | { |
219 | return origPackageList[n]; | 220 | return origPackageList[n]; |
220 | } | 221 | } |
221 | 222 | ||
222 | void PackageList::clear() | 223 | void PackageList::clear() |
223 | { | 224 | { |
224 | origPackageList.clear(); | 225 | origPackageList.clear(); |
225 | packageList.clear(); | 226 | packageList.clear(); |
226 | } | 227 | } |
227 | 228 | ||
228 | void PackageList::allPackages() | 229 | void PackageList::allPackages() |
229 | { | 230 | { |
230 | packageList.clear(); | 231 | packageList.clear(); |
231 | QDictIterator<OipkgPackage> filterIter( origPackageList ); | 232 | QDictIterator<OipkgPackage> filterIter( origPackageList ); |
232 | filterIter.toFirst(); | 233 | filterIter.toFirst(); |