You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2015/03/25 19:59:46 UTC

svn commit: r1669208 - /qpid/trunk/qpid/cpp/bld-winsdk.ps1

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