author | tille <tille> | 2002-05-26 12:17:56 (UTC) |
---|---|---|
committer | tille <tille> | 2002-05-26 12:17:56 (UTC) |
commit | 602e52f454a3d3a5cd973f3d7957d2d96f86464e (patch) (unidiff) | |
tree | eff9aabdbf44804c1dcc42639eaa00fa92dd200c /noncore/unsupported/oipkg/pmipkg.cpp | |
parent | 26eb036407dbade370032dcca6af49d682f0ebf3 (diff) | |
download | opie-602e52f454a3d3a5cd973f3d7957d2d96f86464e.zip opie-602e52f454a3d3a5cd973f3d7957d2d96f86464e.tar.gz opie-602e52f454a3d3a5cd973f3d7957d2d96f86464e.tar.bz2 |
do not close update windows when not successful
Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pmipkg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index 30777c2..0fa4c61 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp | |||
@@ -331,26 +331,27 @@ void PmIpkg::removeLinks( const QString &dest ) | |||
331 | { | 331 | { |
332 | pvDebug(2,"PmIpkg::removeLinks "+dest); | 332 | pvDebug(2,"PmIpkg::removeLinks "+dest); |
333 | linkOpp=removeLink; | 333 | linkOpp=removeLink; |
334 | QString url = settings->getDestinationUrlByName( dest ); | 334 | QString url = settings->getDestinationUrlByName( dest ); |
335 | url = url==""?dest:url; | 335 | url = url==""?dest:url; |
336 | processLinkDir( "/opt", url ); | 336 | processLinkDir( "/opt", url ); |
337 | processLinkDir( "/usr", url ); | 337 | processLinkDir( "/usr", url ); |
338 | } | 338 | } |
339 | 339 | ||
340 | void PmIpkg::update() | 340 | void PmIpkg::update() |
341 | { | 341 | { |
342 | show(); | 342 | show(); |
343 | runIpkg( "update" ); | 343 | if ( runIpkg( "update" ) ) |
344 | runwindow->close(); | 344 | runwindow->close(); |
345 | else out("An error occurred!\nPlease check the log."); | ||
345 | } | 346 | } |
346 | 347 | ||
347 | void PmIpkg::out( QString o ) | 348 | void PmIpkg::out( QString o ) |
348 | { | 349 | { |
349 | runwindow->outPut->append(o); | 350 | runwindow->outPut->append(o); |
350 | runwindow->outPut->setCursorPosition(runwindow->outPut->numLines() + 1,0,FALSE); | 351 | runwindow->outPut->setCursorPosition(runwindow->outPut->numLines() + 1,0,FALSE); |
351 | } | 352 | } |
352 | 353 | ||
353 | 354 | ||
354 | 355 | ||
355 | 356 | ||
356 | void PmIpkg::show() | 357 | void PmIpkg::show() |