author | tille <tille> | 2002-07-24 11:49:21 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-24 11:49:21 (UTC) |
commit | 919228ff6aeb72b6d2585ae108e86d27d0b6bdb1 (patch) (unidiff) | |
tree | 329dae48711cda4d05b0e7c02ae3a329b80606ff | |
parent | adfb21cd5e2fcf750543570ab9c6427f1fba9968 (diff) | |
download | opie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.zip opie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.tar.gz opie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.tar.bz2 |
hopeing to fix bug #119
-rw-r--r-- | noncore/unsupported/oipkg/pmipkg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index 11c0f97..7682d49 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp | |||
@@ -165,9 +165,9 @@ void PmIpkg::linkPackage( QString packFileName, QString dest ) | |||
165 | } | 165 | } |
166 | 166 | ||
167 | void PmIpkg::processFileList( QStringList *fileList, QString d ) | 167 | void PmIpkg::processFileList( QStringList *fileList, QString d ) |
168 | { | 168 | { |
169 | if (!fileList) return; | 169 | if (!fileList || fileList->isEmpty()) return; |
170 | for (uint i=0; i < fileList->count(); i++) | 170 | for (uint i=0; i < fileList->count(); i++) |
171 | { | 171 | { |
172 | QString dest = settings->getDestinationUrlByName( d ); | 172 | QString dest = settings->getDestinationUrlByName( d ); |
173 | dest = dest==""?d:dest; | 173 | dest = dest==""?d:dest; |
@@ -291,9 +291,9 @@ void PmIpkg::remove() | |||
291 | 291 | ||
292 | QStringList *fileList; | 292 | QStringList *fileList; |
293 | for (uint i=0; i < to_remove.count(); i++) | 293 | for (uint i=0; i < to_remove.count(); i++) |
294 | { | 294 | { |
295 | if ( to_remove.at(i)->link() )fileList = getList( to_remove.at(i)->name(), to_remove.at(i)->dest() ); | 295 | if ( to_remove.at(i)->link() ) fileList = getList( to_remove.at(i)->name(), to_remove.at(i)->dest() ); |
296 | if ( runIpkg("remove " + to_remove.at(i)->installName(), to_remove.at(i)->dest() )) | 296 | if ( runIpkg("remove " + to_remove.at(i)->installName(), to_remove.at(i)->dest() )) |
297 | { | 297 | { |
298 | runwindow->progress->setProgress( 1 ); | 298 | runwindow->progress->setProgress( 1 ); |
299 | linkOpp = removeLink; | 299 | linkOpp = removeLink; |