summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2015-03-25 18:59:46 +0000
committerCharles E. Rolke <chug@apache.org>2015-03-25 18:59:46 +0000
commitf604898fcbdd1acb30647bf44d743633eec1879f (patch)
tree91d49c81622e1b512ce1544172851776f7d248a1
parent2cbf48987d84b9e553cd840742e6aa377d444094 (diff)
downloadqpid-python-f604898fcbdd1acb30647bf44d743633eec1879f.tar.gz
QPID-6463: Adjust for changes between proton 0.8 and 0.9: test that items exist before trying to delete them
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1669208 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/bld-winsdk.ps15
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/bld-winsdk.ps1 b/qpid/cpp/bld-winsdk.ps1
index 441280c4b0..1a6727fc07 100644
--- a/qpid/cpp/bld-winsdk.ps1
+++ b/qpid/cpp/bld-winsdk.ps1
@@ -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
+ }
}
}