diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-07 22:05:47 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-07 22:05:47 +0000 |
commit | a780643c4b6aa11e1a36965a69df7116477c7b4c (patch) | |
tree | 17e81e77bde19931facf9b30fa5b5981df796071 /classes/update-alternatives.oeclass | |
parent | 88cce8db7ebf88ab9da2366a2ac21a5a723340b8 (diff) |
Merge oe-devel@oe-devel.bkbits.net:packages.bb
into handhelds.org:/home/kergoth/code/packages.bb
2004/12/07 04:58:25-06:00 ti.com!kergoth
More updates per the core rename.
2004/12/07 04:46:51-06:00 ti.com!kergoth
Update soundtracker per the core rename.
2004/12/07 04:44:14-06:00 ti.com!kergoth
Merge
2004/12/07 04:42:38-06:00 ti.com!kergoth
Updates per the recent rename of the oe core from 'oe' to 'bitbake'.
BKrev: 41b6293b91LRHSxMOt6WnrZVAdLbFw
Diffstat (limited to 'classes/update-alternatives.oeclass')
-rw-r--r-- | classes/update-alternatives.oeclass | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/classes/update-alternatives.oeclass b/classes/update-alternatives.oeclass deleted file mode 100644 index 9ac1de1143..0000000000 --- a/classes/update-alternatives.oeclass +++ /dev/null @@ -1,33 +0,0 @@ -# defaults -ALTERNATIVE_PRIORITY = "10" -ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}" - -update_alternatives_postinst() { -update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY} -} - -update_alternatives_postrm() { -update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} -} - -python __anonymous() { - if oe.data.getVar('ALTERNATIVE_NAME', d) == None: - raise oe.build.FuncFailed, "%s inherits update-alternatives but doesn't set ALTERNATIVE_NAME" % oe.data.getVar('FILE', d) - if oe.data.getVar('ALTERNATIVE_PATH', d) == None: - raise oe.build.FuncFailed, "%s inherits update-alternatives but doesn't set ALTERNATIVE_PATH" % oe.data.getVar('FILE', d) -} - -python populate_packages_prepend () { - pkg = oe.data.getVar('PN', d, 1) - oe.note('adding update-alternatives calls to postinst/postrm for %s' % pkg) - postinst = oe.data.getVar('pkg_postinst_%s' % pkg, d, 1) or oe.data.getVar('pkg_postinst', d, 1) - if not postinst: - postinst = '#!/bin/sh\n' - postinst += oe.data.getVar('update_alternatives_postinst', d, 1) - oe.data.setVar('pkg_postinst_%s' % pkg, postinst, d) - postrm = oe.data.getVar('pkg_postrm_%s' % pkg, d, 1) or oe.data.getVar('pkg_postrm', d, 1) - if not postrm: - postrm = '#!/bin/sh\n' - postrm += oe.data.getVar('update_alternatives_postrm', d, 1) - oe.data.setVar('pkg_postrm_%s' % pkg, postrm, d) -} |