summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@infinera.com>2022-01-04 10:19:06 +0100
committerMike Frysinger <vapier@gentoo.org>2022-01-13 02:42:52 -0500
commitb3d5707738167a15b9a12d73b855d16784f63d05 (patch)
treeaebd367d88c65b33c9cbb34857b1081dd8210ed5
parentUse @GENTOO_EPREFIX@ instead of @GENTOO_PORTAGE_EPREFIX@ (diff)
downloadbinutils-config-5.4.1.tar.gz
binutils-config-5.4.1.tar.bz2
binutils-config-5.4.1.zip
binutils-config: skip updating empty env.d filesv5.4.1
If the package doesn't have any info or man pages, we won't create an env.d file, so don't try moving it. Closes: https://bugs.gentoo.org/796260 Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xsrc/binutils-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binutils-config b/src/binutils-config
index 28bb044..8b62868 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -253,7 +253,7 @@ switch_profile() {
rm -f "${ee}"
[[ -d ${ROOT}/${DATAPATH}/man ]] && echo "MANPATH=${DATAPATH}/man" >> "${ee}"
[[ -d ${ROOT}/${DATAPATH}/info ]] && echo "INFOPATH=${DATAPATH}/info" >> "${ee}"
- mv_if_diff "${ee}" "${e}"
+ [[ -e "${ee}" ]] && mv_if_diff "${ee}" "${e}"
fi
local c="${ENV_D}/config-${TARGET}"