From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel-bin/
Date: Sat, 28 Dec 2019 20:34:40 +0000 (UTC) [thread overview]
Message-ID: <1577565274.63aed098518786d1b135a6c8665d84483be2f829.mgorny@gentoo> (raw)
commit: 63aed098518786d1b135a6c8665d84483be2f829
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 28 20:30:57 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 20:34:34 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63aed098
sys-kernel/vanilla-kernel-bin: Verify version passed to has_version
Verify the version read from /usr/src/linux symlink and make sure
that it consists of plain [0-9.] before passing it to has_version.
If it doesn't conform, it isn't our symlink anyway.
Closes: https://bugs.gentoo.org/703822
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild
index fa1b7e994f2..4908786bffb 100644
--- a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild
+++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild
@@ -81,8 +81,9 @@ pkg_postinst() {
fi
local symlink_target=$(readlink "${EROOT}"/usr/src/linux)
- if [[ ${symlink_target} == linux-[0-9]* ]]; then
- local symlink_ver=${symlink_target#linux-}
+ local symlink_ver=${symlink_target#linux-}
+ if [[ ${symlink_target} == linux-* && -z ${symlink_ver//[0-9.]/} ]]
+ then
local symlink_pkg=${CATEGORY}/${PN}-${symlink_ver}
# if the current target is either being replaced, or still
# installed (probably depclean candidate), update the symlink
next reply other threads:[~2019-12-28 20:34 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-28 20:34 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-03-15 8:01 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel-bin/ Mikle Kolyada
2020-02-14 8:48 Michał Górny
2020-02-12 20:36 Michał Górny
2020-02-12 15:47 Michał Górny
2020-02-12 12:09 Michał Górny
2020-02-06 20:43 Michał Górny
2020-02-06 17:09 Michał Górny
2020-02-03 5:37 Michał Górny
2020-02-03 5:37 Michał Górny
2020-02-03 5:37 Michał Górny
2020-01-30 19:29 Michał Górny
2020-01-28 18:24 Michał Górny
2020-01-27 11:26 Michał Górny
2020-01-24 19:18 Michał Górny
2020-01-24 19:18 Michał Górny
2020-01-18 16:06 Michał Górny
2020-01-18 16:06 Michał Górny
2020-01-18 16:06 Michał Górny
2020-01-15 11:44 Michał Górny
2020-01-15 10:37 Michał Górny
2020-01-13 14:18 Michał Górny
2020-01-13 11:50 Michał Górny
2020-01-09 21:36 Michał Górny
2020-01-09 21:36 Michał Górny
2020-01-09 21:00 Michał Górny
2020-01-09 21:00 Michał Górny
2020-01-09 16:10 Michał Górny
2020-01-09 16:10 Michał Górny
2020-01-04 15:09 Michał Górny
2020-01-02 13:19 Michał Górny
2020-01-01 22:00 Michał Górny
2020-01-01 22:00 Michał Górny
2019-12-29 12:57 Michał Górny
2019-12-25 22:49 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577565274.63aed098518786d1b135a6c8665d84483be2f829.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox