diff options
author | Joakim Tjernlund <Joakim.Tjernlund@infinera.com> | 2022-01-04 10:19:06 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-13 02:42:52 -0500 |
commit | b3d5707738167a15b9a12d73b855d16784f63d05 (patch) | |
tree | aebd367d88c65b33c9cbb34857b1081dd8210ed5 | |
parent | Use @GENTOO_EPREFIX@ instead of @GENTOO_PORTAGE_EPREFIX@ (diff) | |
download | binutils-config-b3d5707738167a15b9a12d73b855d16784f63d05.tar.gz binutils-config-b3d5707738167a15b9a12d73b855d16784f63d05.tar.bz2 binutils-config-b3d5707738167a15b9a12d73b855d16784f63d05.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-x | src/binutils-config | 2 |
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}" |