]> git.openpandora.org Git - openembedded.git/commitdiff
xlibs: Fix XORG_MIRROR SRC_URI update.
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 7 May 2006 07:51:24 +0000 (07:51 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 7 May 2006 07:51:24 +0000 (07:51 +0000)
 - This adds some python code to xorg-xlibs.inc to handle packages
   that already have 'X11R7.0-' in their PV (missing epoch support).

packages/xlibs/xorg-xlibs.inc

index 037e2b995876d4b056d1c9ab3d9f5e9872d2a091..1a89d353631362534b6412aab2b6002e581b3158 100644 (file)
@@ -1,5 +1,6 @@
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${XORG_PN}-X11R7.0-${PV}.tar.bz2"
-S = "${WORKDIR}/${XORG_PN}-X11R7.0-${PV}"
+XORG_PV = "${@['X11R7.0-${PV}','${PV}'][bb.data.getVar('PV', d, 1)[0:8]=='X11R7.0-']}"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${XORG_PN}-${XORG_PV}.tar.bz2"
+S = "${WORKDIR}/${XORG_PN}-${XORG_PV}"
 
 inherit autotools pkgconfig