qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1669208 - /qpid/trunk/qpid/cpp/bld-winsdk.ps1
Date Wed, 25 Mar 2015 18:59:46 GMT
Author: chug
Date: Wed Mar 25 18:59:46 2015
New Revision: 1669208

URL: http://svn.apache.org/r1669208
Log:
QPID-6463: Adjust for changes between proton 0.8 and 0.9: test that items exist before trying
to delete them

Modified:
    qpid/trunk/qpid/cpp/bld-winsdk.ps1

Modified: qpid/trunk/qpid/cpp/bld-winsdk.ps1
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bld-winsdk.ps1?rev=1669208&r1=1669207&r2=1669208&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bld-winsdk.ps1 (original)
+++ qpid/trunk/qpid/cpp/bld-winsdk.ps1 Wed Mar 25 18:59:46 2015
@@ -308,7 +308,10 @@ function BuildAPlatform
     }
     if ($sharedInstallDir -ne "") {
         foreach ($pattern in $removeProtonShared) {
-            Remove-Item -recurse "$install_dir/$pattern"
+            $target = Join-Path $install_dir $pattern
+            if (Test-Path -path $target) {
+                Remove-Item -recurse $target
+            }
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message