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:
healther 2018-01-14 22:40:22 +01:00 committed by Adam J. Stewart
parent e583d789d6
commit 8f6fe9e030

View file

@ -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