summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-06-08 09:11:50 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-13 10:09:55 +0200
commit028f395ab2e44b2c57815e8242b9c6b7e4ca4605 (patch)
tree5779e9be664a07b70b64915dd8e705d812d86293 /eclass/bash-completion-r1.eclass
parentgit-r3.eclass: Unconditionally depend on dev-vcs/git[curl] for HTTPS (diff)
downloadgentoo-028f395ab2e44b2c57815e8242b9c6b7e4ca4605.tar.gz
gentoo-028f395ab2e44b2c57815e8242b9c6b7e4ca4605.tar.bz2
gentoo-028f395ab2e44b2c57815e8242b9c6b7e4ca4605.zip
bash-completion-r1.eclass: Sanitize insopts
Sanitize insopts when calling doins, in order to avoid prior insopts calls accidentally affecting do*/new* functions defined by the eclass.
Diffstat (limited to 'eclass/bash-completion-r1.eclass')
-rw-r--r--eclass/bash-completion-r1.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/bash-completion-r1.eclass b/eclass/bash-completion-r1.eclass
index eff5e68c437..0a457676ee5 100644
--- a/eclass/bash-completion-r1.eclass
+++ b/eclass/bash-completion-r1.eclass
@@ -98,6 +98,7 @@ dobashcomp() {
debug-print-function ${FUNCNAME} "${@}"
(
+ insopts -m 0644
insinto "$(_bash-completion-r1_get_bashcompdir)"
doins "${@}"
)
@@ -112,6 +113,7 @@ newbashcomp() {
debug-print-function ${FUNCNAME} "${@}"
(
+ insopts -m 0644
insinto "$(_bash-completion-r1_get_bashcompdir)"
newins "${@}"
)