1 |
commit: b3d5707738167a15b9a12d73b855d16784f63d05 |
2 |
Author: Joakim Tjernlund <Joakim.Tjernlund <AT> infinera <DOT> com> |
3 |
AuthorDate: Tue Jan 4 09:19:06 2022 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 13 07:42:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=b3d57077 |
7 |
|
8 |
binutils-config: skip updating empty env.d files |
9 |
|
10 |
If the package doesn't have any info or man pages, we won't create |
11 |
an env.d file, so don't try moving it. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/796260 |
14 |
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund <AT> infinera.com> |
15 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
16 |
|
17 |
src/binutils-config | 2 +- |
18 |
1 file changed, 1 insertion(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/src/binutils-config b/src/binutils-config |
21 |
index 28bb044..8b62868 100755 |
22 |
--- a/src/binutils-config |
23 |
+++ b/src/binutils-config |
24 |
@@ -253,7 +253,7 @@ switch_profile() { |
25 |
rm -f "${ee}" |
26 |
[[ -d ${ROOT}/${DATAPATH}/man ]] && echo "MANPATH=${DATAPATH}/man" >> "${ee}" |
27 |
[[ -d ${ROOT}/${DATAPATH}/info ]] && echo "INFOPATH=${DATAPATH}/info" >> "${ee}" |
28 |
- mv_if_diff "${ee}" "${e}" |
29 |
+ [[ -e "${ee}" ]] && mv_if_diff "${ee}" "${e}" |
30 |
fi |
31 |
|
32 |
local c="${ENV_D}/config-${TARGET}" |