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 | |||
@@ -197,24 +197,25 @@ void PackageList::readFileEntries( QString filename, QString dest ) | |||
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 | } |