Fix installation of bash-completion (#6911)
* Fix installation of bash-completion * use run_before decorator instead of overriding install method
This commit is contained in:
parent
e583d789d6
commit
8f6fe9e030
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ class BashCompletion(AutotoolsPackage):
|
|||
# Other dependencies
|
||||
depends_on('bash@4.1:', type='run')
|
||||
|
||||
@run_before('install')
|
||||
def create_install_directory(self):
|
||||
mkdirp(join_path(self.prefix.share, 'bash-completion', 'completions'))
|
||||
|
||||
@run_after('install')
|
||||
def show_message_to_user(self):
|
||||
prefix = self.prefix
|
||||
|
|
Loading…
Reference in a new issue