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@gentoo.org>
This commit is contained in:
Fabian Groffen
2022-01-07 10:04:39 +01:00
parent ec26c1dea9
commit ffa0b5efc2
@@ -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