summaryrefslogtreecommitdiff
authorandyq <andyq>2003-01-18 12:40:22 (UTC)
committer andyq <andyq>2003-01-18 12:40:22 (UTC)
commit2ad938f8470eb460ea5dae6ca3844c4dcc6cd991 (patch) (unidiff)
tree52235c5f9f4ecc469b1d0ae57f1482e1cf2c475a
parent1c9b38eaee495c13d5d3fcbd818965339cc6d0ce (diff)
downloadopie-2ad938f8470eb460ea5dae6ca3844c4dcc6cd991.zip
opie-2ad938f8470eb460ea5dae6ca3844c4dcc6cd991.tar.gz
opie-2ad938f8470eb460ea5dae6ca3844c4dcc6cd991.tar.bz2
Fixed relinking of files when upgrade selected (now removes old links first and recreates them after), also cut down on spurious failed to link errors on linking
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp
index 29bf40d..51eca8b 100644
--- a/noncore/settings/aqpkg/ipkg.cpp
+++ b/noncore/settings/aqpkg/ipkg.cpp
@@ -121,5 +121,5 @@ bool Ipkg :: runIpkg( )
121 121
122 // If we are removing packages and make links option is selected 122 // If we are removing, reinstalling or upgrading packages and make links option is selected
123 // create the links 123 // create the links
124 if ( option == "remove" || option == "reinstall" ) 124 if ( option == "remove" || option == "reinstall" || option == "upgrade" )
125 { 125 {
@@ -143,3 +143,3 @@ bool Ipkg :: runIpkg( )
143 143
144 if ( option == "install" || option == "reinstall" ) 144 if ( option == "install" || option == "reinstall" || option == "upgrade" )
145 { 145 {
@@ -524,4 +524,4 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
524 } 524 }
525 else 525// else
526 emit outputText( QString( "Directory " ) + linkFile + " already exists" ); 526// emit outputText( QString( "Directory " ) + linkFile + " already exists" );
527 527
@@ -554,2 +554,4 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
554 bool rc = d.rmdir( linkFile, true ); 554 bool rc = d.rmdir( linkFile, true );
555 if ( rc )
556 {
555 text = (rc ? "Removed " : "Failed to remove "); 557 text = (rc ? "Removed " : "Failed to remove ");
@@ -560,2 +562,3 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
560 } 562 }
563 }
561 564