lzma: update SRC_URI. closes 4494.
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Wed, 13 Aug 2008 13:08:27 +0000 (13:08 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Wed, 13 Aug 2008 13:08:27 +0000 (13:08 +0000)
* point to sf.net mirrors for download
* introduce PVNODOT local variable to enable easier upgrade to new releases
* update checksums.ini

conf/checksums.ini
packages/lzma/lzma-native_4.17.bb

index df007df..648da96 100644 (file)
@@ -9502,7 +9502,7 @@ sha256=2ac2154e3f66b5b32ca25d47e3977db115ac6dc52ddb7442ce16e65a4ac1afee
 md5=c703192481d94dfa3f4e24eed22c8182
 sha256=daa670b686f959ab15e457425e57c50f0b973ee4d24d6a4171c33f467961ad1d
 
-[http://www.7-zip.org/dl/lzma417.tar.bz2]
+[http://downloads.sourceforge.net/sevenzip/lzma417.tar.bz2]
 md5=b1ab85e4dc1eb1323d77fef47a2cb71c
 sha256=84124d4501798ecb284fceb28931db023850535e1b1146c884add7b3b0331cbc
 
index 1ccf005..24664b3 100644 (file)
@@ -2,9 +2,10 @@ DESCRIPTION = "LZMA is a general compression method. LZMA provides high compress
 HOMEPAGE = "http://www.7-zip.org/"
 LICENSE = "LGPL"
 DEPENDS = "zlib-native"
-PR = "r2"
+PR = "r3"
 
-SRC_URI = "http://www.7-zip.org/dl/lzma417.tar.bz2 \
+PVNODOT = "${@bb.data.getVar('PV',d,1).split('.')[0]}${@bb.data.getVar('PV',d,1).split('.')[1]}"
+SRC_URI = "${SOURCEFORGE_MIRROR}/sevenzip/lzma${PVNODOT}.tar.bz2 \
            file://lzma-406-zlib-stream.patch;patch=1;pnum=2"
 
 S = "${WORKDIR}/SRC"