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