Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 08/21] gnomebase: trim the SRC_URI directory from the back
Date: Mon, 24 May 2021 11:13:34 +0200	[thread overview]
Message-ID: <20210524091347.419253-8-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20210524091347.419253-1-alex.kanavin@gmail.com>

Rather than take the first two components, drop the last one at the end.
This makes it compatible with both old and new gnome version schemes.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 meta/classes/gnomebase.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/gnomebase.bbclass b/meta/classes/gnomebase.bbclass
index efcb6caae1..884b1a106f 100644
--- a/meta/classes/gnomebase.bbclass
+++ b/meta/classes/gnomebase.bbclass
@@ -1,5 +1,6 @@
 def gnome_verdir(v):
-    return oe.utils.trim_version(v, 2)
+    return ".".join(v.split(".")[:-1])
+
 
 GNOME_COMPRESS_TYPE ?= "xz"
 SECTION ?= "x11/gnome"
-- 
2.31.1


  parent reply	other threads:[~2021-05-24  9:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24  9:13 [PATCH 01/21] gdk-pixbuf: update a patch status Alexander Kanavin
2021-05-24  9:13 ` [PATCH 02/21] systemd: update 247.6 -> 248.3 Alexander Kanavin
2021-05-25  0:18   ` [OE-core] " Khem Raj
2021-05-25  1:40     ` Khem Raj
2021-05-25  7:55       ` Alexander Kanavin
2021-05-25 13:52         ` Khem Raj
2021-05-25 14:02           ` Alexander Kanavin
2021-05-25 14:16             ` Richard Purdie
2021-05-25 14:29               ` Alexander Kanavin
2021-05-24  9:13 ` [PATCH 03/21] systemd-conf: do not version in lockstep with systemd Alexander Kanavin
2021-05-24  9:13 ` [PATCH 04/21] gnu-config: update to latest revision Alexander Kanavin
2021-05-24  9:13 ` [PATCH 05/21] mmc-utils: " Alexander Kanavin
2021-05-24  9:13 ` [PATCH 06/21] python3-smartypants: fix upstream version check Alexander Kanavin
2021-05-24  9:13 ` [PATCH 07/21] at: upgrade 3.2.1 -> 3.2.2 Alexander Kanavin
2021-05-24  9:13 ` Alexander Kanavin [this message]
2021-05-24  9:13 ` [PATCH 09/21] gsettings-desktop-schemas: upgrade 3.38.0 -> 40.0 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 10/21] igt-gpu-tools: upgrade 1.25 -> 1.26 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 11/21] mesa: update 21.0.3 -> 21.1.1 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 12/21] vulkan-samples: update to latest revision Alexander Kanavin
2021-05-24  9:13 ` [PATCH 13/21] libgpg-error: update 1.41 -> 1.42 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 14/21] webkitgtk: update 2.32.0 -> 2.32.1 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 15/21] glib-2.0: update 2.68.1 -> 2.68.2 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 16/21] apt: upgrade 2.2.2 -> 2.2.3 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 17/21] cmake: update 3.20.1 -> 3.20.2 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 18/21] libdnf: update 0.62.0 -> 0.63.0 Alexander Kanavin
2021-05-28  2:49   ` [OE-core] " Chen Qi
2021-05-24  9:13 ` [PATCH 19/21] harfbuzz: update 2.8.0 -> 2.8.1 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 20/21] curl: update 7.76.0 -> 7.76.1 Alexander Kanavin
2021-05-24  9:13 ` [PATCH 21/21] systemtap: update 4.4 -> 4.5 Alexander Kanavin

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=20210524091347.419253-8-alex.kanavin@gmail.com \
    --to=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.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