aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkewl fft <kewl@alto.eu.org>2018-10-09 21:16:14 +0100
committerZac Medico <zmedico@gentoo.org>2018-10-19 21:05:29 -0700
commit7a3d898b33d6c13f184d1328278e1ddaed368cf4 (patch)
tree15fcd33d0a817b771e9779dbd68c0ce425256d92 /bin/etc-update
parentdoebuild: skip timestamp check for deleted distfiles (bug 668206) (diff)
downloadportage-7a3d898b33d6c13f184d1328278e1ddaed368cf4.tar.gz
portage-7a3d898b33d6c13f184d1328278e1ddaed368cf4.tar.bz2
portage-7a3d898b33d6c13f184d1328278e1ddaed368cf4.zip
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@alto.eu.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update2
1 files changed, 1 insertions, 1 deletions
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';;