summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorWill Szumski <will@stackhpc.com>2019-01-07 15:34:45 +0000
committerWill Szumski <will@stackhpc.com>2019-01-11 13:56:52 +0000
commita9b31113b76bde3debc696c1ce71aa7dd594faa3 (patch)
treea9fa6acfad07626f2667e75cbf9f2f4bab181943 /releasenotes
parent11cf070f9412363ba3cec9e746b34d06c6f73a0b (diff)
downloadpbr-a9b31113b76bde3debc696c1ce71aa7dd594faa3.tar.gz
Do not globally replace path prefix
If a subdirectory contained the source prefix in it's name, this was replaced globally e.g using share/ansible = ansible/*, with the following directory structure: ansible/roles/kolla-ansible/test would result in the files being installed as follows: share/ansible/roles/kolla-share/test whereas we expected: share/ansible/roles/kolla-ansible/test This patch changes the behavior so that only the first occurance is replaced. Change-Id: I0aab845315dab0aaccd5f67725d2ebcf0fd08aef Fixes-Bug: 1810804
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/fix-global-replace-of-src-prefix-in-glob-eb850b94ca96993e.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-global-replace-of-src-prefix-in-glob-eb850b94ca96993e.yaml b/releasenotes/notes/fix-global-replace-of-src-prefix-in-glob-eb850b94ca96993e.yaml
new file mode 100644
index 0000000..b2895aa
--- /dev/null
+++ b/releasenotes/notes/fix-global-replace-of-src-prefix-in-glob-eb850b94ca96993e.yaml
@@ -0,0 +1,9 @@
+---
+fixes:
+ - |
+ Fixes a bug where the directory names of items specified in ``data_files``
+ could be renamed if the source prefix glob was contained within the
+ directory name. See `bug 1810804
+ <https://bugs.launchpad.net/pbr/+bug/1810804>`_ for details. For more
+ information on ``data_files``, see the `distutils documentation
+ <https://docs.python.org/2/distutils/setupscript.html#installing-additional-files>`_.