]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnomebase: add GNOME_COMPRESS_TYPE variable
authorSaul Wold <sgw@linux.intel.com>
Wed, 6 Jun 2012 05:34:22 +0000 (22:34 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jun 2012 09:58:07 +0000 (10:58 +0100)
Upstream Gnome projects are starting to migrate to the .xz compress format,
so we need to add this to allow recipes to override the default of .bz2 as
the upstreams make the transition.

[YOCTO #2241]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/gnomebase.bbclass

index a4209a02890e257c88580f14c49d3a60bfd0e4ec..80b78be48de0c3ce8bf60bae94d2bc21c349efb7 100644 (file)
@@ -3,8 +3,9 @@ def gnome_verdir(v):
        m = re.match("^([0-9]+)\.([0-9]+)", v)
        return "%s.%s" % (m.group(1), m.group(2))
 
+GNOME_COMPRESS_TYPE ?= "bz2"
 SECTION ?= "x11/gnome"
-SRC_URI = "${GNOME_MIRROR}/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.bz2;name=archive"
+SRC_URI = "${GNOME_MIRROR}/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
 
 DEPENDS += "gnome-common"