From a2417b3b98bd6200e211c333a7044ccdb08dc515 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Fri, 18 May 2012 15:29:56 +0200 Subject: xfce.bbclass: change SRC_URI calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * grabbed from oe-core gnomebase.bbclass * old calculation did not work for version numbers with multiple digits (4.10) Signed-off-by: Andreas Müller --- meta-xfce/classes/xfce.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-xfce/classes/xfce.bbclass') diff --git a/meta-xfce/classes/xfce.bbclass b/meta-xfce/classes/xfce.bbclass index 2350c2703f..f4ef55643b 100644 --- a/meta-xfce/classes/xfce.bbclass +++ b/meta-xfce/classes/xfce.bbclass @@ -1,5 +1,10 @@ +def xfce_verdir(v): + import re + m = re.match("^([0-9]+)\.([0-9]+)", v) + return "%s.%s" % (m.group(1), m.group(2)) + HOMEPAGE = "http://www.xfce.org" -SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:3]}/${BPN}-${PV}.tar.bz2" +SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2" inherit autotools gettext gtk-icon-cache pkgconfig -- cgit 1.2.3-korg