diff options
author | Charles E. Rolke <chug@apache.org> | 2015-03-25 18:59:46 +0000 |
---|---|---|
committer | Charles E. Rolke <chug@apache.org> | 2015-03-25 18:59:46 +0000 |
commit | f604898fcbdd1acb30647bf44d743633eec1879f (patch) | |
tree | 91d49c81622e1b512ce1544172851776f7d248a1 | |
parent | 2cbf48987d84b9e553cd840742e6aa377d444094 (diff) | |
download | qpid-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.ps1 | 5 |
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 + } } } |