1 |
commit: 7a3d898b33d6c13f184d1328278e1ddaed368cf4 |
2 |
Author: kewl fft <kewl <AT> alto <DOT> eu <DOT> org> |
3 |
AuthorDate: Tue Oct 9 20:16:14 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 20 04:05:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7a3d898b |
7 |
|
8 |
etc-update: handle whitespace in ID_LIKE |
9 |
|
10 |
In case ID_LIKE contains space separated identifiers, |
11 |
handle all whitespace characters including tabs. |
12 |
|
13 |
Closes: https://github.com/gentoo/portage/pull/377 |
14 |
Signed-off-by: Kewl Fft <kewl <AT> alto.eu.org> |
15 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
16 |
|
17 |
bin/etc-update | 2 +- |
18 |
1 file changed, 1 insertion(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/bin/etc-update b/bin/etc-update |
21 |
index 3951ec674..be8656008 100755 |
22 |
--- a/bin/etc-update |
23 |
+++ b/bin/etc-update |
24 |
@@ -32,7 +32,7 @@ get_config() { |
25 |
"${PORTAGE_CONFIGROOT}"etc/etc-update.conf) |
26 |
} |
27 |
|
28 |
-OS_RELEASE_POSSIBLE_IDS=$(source /etc/os-release >/dev/null 2>&1; echo ":${ID}:${ID_LIKE}:") |
29 |
+OS_RELEASE_POSSIBLE_IDS=$(source /etc/os-release >/dev/null 2>&1; echo ":${ID}:${ID_LIKE//[[:space:]]/:}:") |
30 |
|
31 |
case ${OS_RELEASE_POSSIBLE_IDS} in |
32 |
*:suse:*|*:opensuse:*|*:opensuse-tumbleweed:*) OS_FAMILY='rpm';; |