[CONSOLIDATED,REQUEST,20/64] pigz: cleanup update-alternatives deprecated code

Submitted by Saul Wold on Aug. 14, 2012, 12:13 p.m.

Details

Message ID 843d676d604f17e5be1f85f92a738dd34d0309a9.1344946189.git.sgw@linux.intel.com
State Accepted
Commit ec30a17ca617d9251404938da95ce578ff6402cf
Headers show

Commit Message

Saul Wold Aug. 14, 2012, 12:13 p.m.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-extended/pigz/pigz.inc      |    4 +++-
 meta/recipes-extended/pigz/pigz_2.2.4.bb |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index e1cbc8b..be37e8a 100644
--- a/meta/recipes-extended/pigz/pigz.inc
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -27,6 +27,8 @@  do_install () {
 	fi
 }
 
-ALTERNATIVE_LINKS = "${base_bindir}/gzip ${base_bindir}/gunzip"
+ALTERNARIVE_${PN} = "gzip gunzip"
+ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
+ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
 ALTERNATIVE_PRIORITY = "80"
 
diff --git a/meta/recipes-extended/pigz/pigz_2.2.4.bb b/meta/recipes-extended/pigz/pigz_2.2.4.bb
index e76c49c..1cb9d08 100644
--- a/meta/recipes-extended/pigz/pigz_2.2.4.bb
+++ b/meta/recipes-extended/pigz/pigz_2.2.4.bb
@@ -1,6 +1,6 @@ 
 require pigz.inc
 
-PR = "r2"
+PR = "r3"
 
 NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"