summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-12-05 21:41:11 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-12-05 21:46:39 +0100
commitb427576d188a4a1e466f65a8a03b6fb99649948f (patch)
treeeb84e5c6de8a0b1fa240ae83276e23b87339b558
parentb9d8b71c56bc58c10ab045e0e7ae72c56cb95dfe (diff)
downloadkde-b427576d188a4a1e466f65a8a03b6fb99649948f.tar.gz
kde-b427576d188a4a1e466f65a8a03b6fb99649948f.tar.bz2
kde-b427576d188a4a1e466f65a8a03b6fb99649948f.zip
Documentation: lib.sh: Fix get_main_tree_keyword()
Sometimes ^KEYWORDS does not match. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rwxr-xr-xDocumentation/maintainers/new/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/maintainers/new/lib.sh b/Documentation/maintainers/new/lib.sh
index 22e42ccee96..53ba5dc9ce8 100755
--- a/Documentation/maintainers/new/lib.sh
+++ b/Documentation/maintainers/new/lib.sh
@@ -147,7 +147,7 @@ get_main_tree_keyword() {
local portdir="$(portageq get_repo_path / gentoo)"
local cp="${1}"
- echo $(sed -ne 's/^KEYWORDS="\(.*\)"/\1/p' "$(ls ${portdir}/${cp}/*.ebuild | sort | tail -n 1)")
+ echo $(sed -ne 's/^\s*KEYWORDS="\(.*\)"/\1/p' "$(ls ${portdir}/${cp}/*.ebuild | sort | tail -n 1)")
}
# @FUNCTION: get_package_list_from_set