diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-11-01 16:09:26 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-11-01 16:09:26 -0700 |
commit | 4a001e542a980bda4e71e205ee43ccb587fc5066 (patch) | |
tree | 96c72abcd7f700cfd4e513b2b656fe3b2912e4c6 /recipes | |
parent | 0de2221d3b4412cc018dfa3b25cf42f64dba49ea (diff) | |
download | openembedded-4a001e542a980bda4e71e205ee43ccb587fc5066.tar.gz |
gzip: Fix update-alternatives
The rename was being done correctly in do_install (for just pn-gzip)
so remove a bad attempted rename in the postinst and suffix that and
prerm with pn-gzip while we're in here.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gzip/gzip_1.4.bb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/gzip/gzip_1.4.bb b/recipes/gzip/gzip_1.4.bb index 2c9e571389..dda1035e7f 100644 --- a/recipes/gzip/gzip_1.4.bb +++ b/recipes/gzip/gzip_1.4.bb @@ -4,7 +4,7 @@ the standard compression program for its system." SECTION = "console/utils" PRIORITY = "required" LICENSE = "GPL" -PR = "1" +PR = "r2" SRC_URI = "${GNU_MIRROR}/gzip/gzip-${PV}.tar.gz" SRC_URI[md5sum] = "e381b8506210c794278f5527cba0e765" @@ -31,16 +31,15 @@ do_install_append_pn-gzip () { done } -pkg_prerm_${PN} () { +pkg_prerm_pn-gzip () { for alternative in ${alternatives}; do mv ${D}${base_bindir}/$alternative ${D}${base_bindir}/$alternative.${PN} update-alternatives --remove $alternative $alternative.${PN} done } -pkg_postinst_${PN} () { +pkg_postinst_pn-gzip () { for alternative in ${alternatives}; do - mv ${D}${base_bindir}/$alternative ${D}${base_bindir}/$alternative.${PN} update-alternatives --install ${base_bindir}/$alternative $alternative $alternative.${PN} 100 done } |