commit:     ffa0b5efc22797f863a1c511c4904aecbfe046df
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  7 09:04:23 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan  7 09:04:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffa0b5ef

net-analyzer/graphite-web-1.1.8-r2: fix python pre-compiled files

Closes: https://bugs.gentoo.org/808863
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 .../{graphite-web-1.1.8-r1.ebuild => graphite-web-1.1.8-r2.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/graphite-web/graphite-web-1.1.8-r1.ebuild 
b/net-analyzer/graphite-web/graphite-web-1.1.8-r2.ebuild
similarity index 93%
rename from net-analyzer/graphite-web/graphite-web-1.1.8-r1.ebuild
rename to net-analyzer/graphite-web/graphite-web-1.1.8-r2.ebuild
index 2fa1a1ef5fed..933b28b75a8c 100644
--- a/net-analyzer/graphite-web/graphite-web-1.1.8-r1.ebuild
+++ b/net-analyzer/graphite-web/graphite-web-1.1.8-r2.ebuild
@@ -67,8 +67,11 @@ python_install() {
        distutils-r1_python_install \
                --install-data="${EPREFIX}"/usr/share/${PN}
 
-       insinto /etc/${PN}
-       newins webapp/graphite/local_settings.py.example local_settings.py
+       # copy the file once, to keep the timestamps correct, #808863
+       if [[ ! -e ${ED}/etc/${PN}/local_settings.py ]] ; then
+               insinto /etc/${PN}
+               newins webapp/graphite/local_settings.py.example 
local_settings.py
+       fi
        pushd "${D}/$(python_get_sitedir)"/graphite > /dev/null || die
        ln -s ../../../../../etc/${PN}/local_settings.py local_settings.py || 
die
        popd > /dev/null || die

Reply via email to