I will provide patches for more if the functions are accepted.
---
eutils.eclass | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
- (
- # wrap the env here so that the 'insinto' call
- # doesn't corrupt the env of the caller
- insinto /usr/share/applications
- doins "${desktop}"
- ) || die "installing desktop file failed"
+ dointo /usr/share/applications "${desktop}"
+ || die "installing desktop file failed"
}
- (
- # wrap the env here so that the 'insinto' call
- # doesn't corrupt the env of the caller
- insinto /usr/share/xsessions
- doins "${desktop}"
- )
+ dointo /usr/share/xsessions "${desktop}"
}
# @FUNCTION: domenu
@@ -973,12 +964,9 @@ domenu() {
# @DESCRIPTION:
# Like all other new* functions, install the specified menu as newname.
newmenu() {
- (
- # wrap the env here so that the 'insinto' call
- # doesn't corrupt the env of the caller
- insinto /usr/share/applications
- newins "$@"
- )
+ [[ ${#} -eq 2 ]] || die 'Synopsis: newmenu <menu> <newname>'
+
+ newinto /usr/share/applications "${@}"
}