Patchwork [CONSOLIDATED,REQUEST,27/64] hdparm: cleanup update-alternatives deprecated code

login
register
mail settings
Submitter Saul Wold
Date Aug. 14, 2012, 12:13 p.m.
Message ID <9c6f2f702dee2b3d3f650a25f8b63ead9c07109f.1344946189.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/34521/
State Accepted
Commit 32e54fb0cdfdad5bab000aa5edd9eadb7459a9a4
Headers show

Comments

Saul Wold - Aug. 14, 2012, 12:13 p.m.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-extended/hdparm/hdparm_9.39.bb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-extended/hdparm/hdparm_9.39.bb b/meta/recipes-extended/hdparm/hdparm_9.39.bb
index 40ebd35..1dfc57f 100644
--- a/meta/recipes-extended/hdparm/hdparm_9.39.bb
+++ b/meta/recipes-extended/hdparm/hdparm_9.39.bb
@@ -8,7 +8,7 @@  LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=910a8a42c962d238619c75fdb78bdb24 \
                     file://wiper/GPLv2.txt;md5=fcb02dc552a041dee27e4b85c7396067 \
                     file://wiper/wiper.sh;beginline=7;endline=31;md5=b7bc642addc152ea307505bf1a296f09"
 
-PR = "r2"
+PR = "r3"
 
 PACKAGES += "wiper"
 
@@ -25,7 +25,8 @@  EXTRA_OEMAKE += 'STRIP="echo"'
 
 inherit update-alternatives
 
-ALTERNATIVE_LINKS = "${base_sbindir}/hdparm"
+ALTERNATIVE_${PN} = "hdparm"
+ALTERNATIVE_LINK_NAME[hdparm] = "${base_sbindir}/hdparm"
 ALTERNATIVE_PRIORITY = "100"
 
 do_install () {