[oe-commits] Saul Wold : time: cleanup update-alternatives deprecated code
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 15 13:31:55 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 75a086630fdf118db3bd2bda12532370d3175081
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=75a086630fdf118db3bd2bda12532370d3175081
Author: Saul Wold <sgw at linux.intel.com>
Date: Thu Jul 26 17:26:09 2012 -0700
time: cleanup update-alternatives deprecated code
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/time/time.inc | 8 +-------
meta/recipes-extended/time/time_1.7.bb | 2 +-
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/meta/recipes-extended/time/time.inc b/meta/recipes-extended/time/time.inc
index 8e35843..028da7c 100644
--- a/meta/recipes-extended/time/time.inc
+++ b/meta/recipes-extended/time/time.inc
@@ -8,11 +8,5 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
inherit update-alternatives
-do_install_append () {
- mv ${D}${bindir}/time ${D}${bindir}/time.${BPN}
-}
-
-ALTERNATIVE_NAME = "time"
-ALTERNATIVE_LINK = "${bindir}/time"
-ALTERNATIVE_PATH = "${bindir}/time.${BPN}"
+ALTERNATIVE_${PN} = "time"
ALTERNATIVE_PRIORITY = "100"
diff --git a/meta/recipes-extended/time/time_1.7.bb b/meta/recipes-extended/time/time_1.7.bb
index c38608f..92c5353 100644
--- a/meta/recipes-extended/time/time_1.7.bb
+++ b/meta/recipes-extended/time/time_1.7.bb
@@ -1,6 +1,6 @@
require time.inc
-PR = "r1"
+PR = "r2"
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
file://debian.patch"
More information about the Openembedded-commits
mailing list