intltool: cut the versioning in SRC_URI and close #2494
authorMichael Krelin <hacker@klever.net>
Sat, 16 Jun 2007 22:03:02 +0000 (22:03 +0000)
committerMichael Krelin <hacker@klever.net>
Sat, 16 Jun 2007 22:03:02 +0000 (22:03 +0000)
packages/intltool/intltool.inc

index f4de1ff..410a89c 100644 (file)
@@ -3,7 +3,8 @@ PRIORITY = "optional"
 SECTION = "devel"
 LICENSE = "GPL"
 
-SRC_URI = "${GNOME_MIRROR}/intltool/${PV}/intltool-${PV}.tar.bz2"
+URLV="${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}"
+SRC_URI = "${GNOME_MIRROR}/intltool/${URLV}/intltool-${PV}.tar.bz2"
 S = "${WORKDIR}/intltool-${PV}"
 
 inherit autotools  pkgconfig