diff options
| author | Michał Górny <mgorny@gentoo.org> | 2019-08-11 08:39:35 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2019-08-11 08:40:31 +0200 |
| commit | 35b59df9c14228d1be3989516dedd51ea4bafbad (patch) | |
| tree | 39bde3c24fe5a4cd48033f62e998a07797f21f6e /dev-lang/python-exec | |
| parent | 551c82b85e54a7f3de4496b3e1adc1515427acb8 (diff) | |
| download | gentoo-35b59df9c14228d1be3989516dedd51ea4bafbad.tar.gz gentoo-35b59df9c14228d1be3989516dedd51ea4bafbad.tar.bz2 gentoo-35b59df9c14228d1be3989516dedd51ea4bafbad.zip | |
dev-lang/python-exec: Fix missing slashes
Reported-by: Tim Harder <radhermit@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/python-exec')
| -rw-r--r-- | dev-lang/python-exec/python-exec-2.4.6-r1.ebuild | 12 | ||||
| -rw-r--r-- | dev-lang/python-exec/python-exec-9999.ebuild | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild index b40c64f6530b..caee841df078 100644 --- a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild +++ b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild @@ -61,14 +61,14 @@ src_install() { } pkg_preinst() { - if [[ -e ${EROOT}etc/python-exec/python-exec.conf ]]; then + if [[ -e ${EROOT}/etc/python-exec/python-exec.conf ]]; then # preserve current configuration - cp "${EROOT}"etc/python-exec/python-exec.conf \ - "${ED}"etc/python-exec/python-exec.conf || die + cp "${EROOT}"/etc/python-exec/python-exec.conf \ + "${ED}"/etc/python-exec/python-exec.conf || die else # preserve previous Python version preference local py old_pythons=() - local config_base=${EROOT}etc/env.d/python + local config_base=${EROOT}/etc/env.d/python # start with the 'global' preference (2 vs 3) if [[ -f ${config_base}/config ]]; then @@ -115,14 +115,14 @@ pkg_preinst() { elog "you may want to modify the preference list yourself. In order to do so," elog "open the following file in your favorite editor:" elog - elog " ${EROOT}etc/python-exec/python-exec.conf" + elog " ${EROOT}/etc/python-exec/python-exec.conf" elog elog "For more information on the new configuration format, please read" elog "the comment on top of the installed configuration file." local IFS=$'\n' echo "${old_pythons[*]}" \ - >> "${ED}"etc/python-exec/python-exec.conf || die + >> "${ED}"/etc/python-exec/python-exec.conf || die fi fi } diff --git a/dev-lang/python-exec/python-exec-9999.ebuild b/dev-lang/python-exec/python-exec-9999.ebuild index 95c958dd98ec..f5c7a17a180b 100644 --- a/dev-lang/python-exec/python-exec-9999.ebuild +++ b/dev-lang/python-exec/python-exec-9999.ebuild @@ -67,14 +67,14 @@ src_install() { } pkg_preinst() { - if [[ -e ${EROOT}etc/python-exec/python-exec.conf ]]; then + if [[ -e ${EROOT}/etc/python-exec/python-exec.conf ]]; then # preserve current configuration - cp "${EROOT}"etc/python-exec/python-exec.conf \ - "${ED}"etc/python-exec/python-exec.conf || die + cp "${EROOT}"/etc/python-exec/python-exec.conf \ + "${ED}"/etc/python-exec/python-exec.conf || die else # preserve previous Python version preference local py old_pythons=() - local config_base=${EROOT}etc/env.d/python + local config_base=${EROOT}/etc/env.d/python # start with the 'global' preference (2 vs 3) if [[ -f ${config_base}/config ]]; then @@ -121,14 +121,14 @@ pkg_preinst() { elog "you may want to modify the preference list yourself. In order to do so," elog "open the following file in your favorite editor:" elog - elog " ${EROOT}etc/python-exec/python-exec.conf" + elog " ${EROOT}/etc/python-exec/python-exec.conf" elog elog "For more information on the new configuration format, please read" elog "the comment on top of the installed configuration file." local IFS=$'\n' echo "${old_pythons[*]}" \ - >> "${ED}"etc/python-exec/python-exec.conf || die + >> "${ED}"/etc/python-exec/python-exec.conf || die fi fi } |
