]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
sudo: adjust version to allow for upgrades.
authorRene Wagner <rw@handhelds.org>
Sat, 12 Aug 2006 18:19:23 +0000 (20:19 +0200)
committerRene Wagner <rw@handhelds.org>
Sat, 12 Aug 2006 18:19:23 +0000 (20:19 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/classes/debian-vampyre.bbclass

index a7bb6a5f56167ef43f5c46ab4400e052b325d453..1165d9cfbf6544553a701ae814b182d30c8441bc 100644 (file)
@@ -5,13 +5,15 @@
 #
 
 PN = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[0] or 'defaultpkgname'}"
-PV = "${@'-'.join((bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1.0').split('-')[:-1])}"
-PR = "${@(bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1').split('-')[-1]}"
+DPV = "${@'-'.join((bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1.0').split('-')[:-1])}"
+DPR = "${@(bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1').split('-')[-1]}"
+PV = "${DPV}.debian${DPR}"
+S = "${WORKDIR}/${PN}-${DPV}"
 
 DEBIAN_ARCHIVE ?= "main"
 DEBIAN_BASE_URI = "${DEBIAN_MIRROR}/${DEBIAN_ARCHIVE}/${@bb.data.getVar('PN', d, 1)[0]}/${PN}"
-SRC_URI = "${DEBIAN_BASE_URI}/${PN}_${PV}.orig.tar.gz \
-           ${DEBIAN_BASE_URI}/${PN}_${PV}-${PR}.diff.gz;patch=1"
+SRC_URI = "${DEBIAN_BASE_URI}/${PN}_${DPV}.orig.tar.gz \
+           ${DEBIAN_BASE_URI}/${PN}_${DPV}-${DPR}.diff.gz;patch=1 "
 
 do_install_append () {
        mkdir -p ${D}${datadir}/doc/${PN}