commit: c61f2dd66393d5bd1dc86eb8ec286a3b0a499944
Author: Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 23 10:15:34 2016 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sat Jul 23 10:15:34 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c61f2dd6
Documentation: Fix bump-from-set KEYWORDS generation
If package doesn't exist in gentoo main tree use minimal ~amd64 ~x86
KEYWORDS. Otherwise KEYWORDS are empty.
Documentation/maintainers/bump-from-set.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/maintainers/bump-from-set.sh
b/Documentation/maintainers/bump-from-set.sh
index ff32141..199af2a 100755
--- a/Documentation/maintainers/bump-from-set.sh
+++ b/Documentation/maintainers/bump-from-set.sh
@@ -15,8 +15,11 @@ get_package_list_from_set() {
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)")
+ if [[ -e ${portdir}/${cp} ]] ; then
+ echo $(sed -ne 's/^KEYWORDS="\(.*\)"/\1/p' "$(ls
${portdir}/${cp}/*.ebuild | sort | tail -n 1)")
+ else
+ echo "~amd64 ~x86"
+ fi
}
help() {
@@ -28,8 +31,6 @@ help() {
echo
echo Reads PORTDIR from your enviroment, defaulting to the current
directory.
echo
- echo Reads KEYWORDS for the new ebuild from your environment,
defaulting to ~amd64.
- echo
echo Usage: bump-from-set.sh SETNAME SOURCEVERSION DESTINATIONVERSION
echo Example: bump-from-set.sh kde-plasma-5.7 5.7.49.9999 5.7.1
exit 0