summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2006-08-12 20:19:23 +0200
committerRene Wagner <rw@handhelds.org>2006-08-12 20:19:23 +0200
commit091b5c5ab025c25d95f1242415d7af9d19d22136 (patch)
tree7a44d374962865d2e9ba1549adbf71cf3e819702
parent120d5971fd9e5c403ee2fdffb9b0a2f76ff74c43 (diff)
sudo: adjust version to allow for upgrades.
Signed-off-by: Rene Wagner <rw@handhelds.org>
-rw-r--r--org.handhelds.familiar/classes/debian-vampyre.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/org.handhelds.familiar/classes/debian-vampyre.bbclass b/org.handhelds.familiar/classes/debian-vampyre.bbclass
index a7bb6a5..1165d9c 100644
--- a/org.handhelds.familiar/classes/debian-vampyre.bbclass
+++ b/org.handhelds.familiar/classes/debian-vampyre.bbclass
@@ -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}