app-emulation/lxc: fix bashcomp collision with app-emulation/lxd
authorYixun Lan <dlan@gentoo.org>
Thu, 8 Dec 2016 09:37:13 +0000 (17:37 +0800)
committerYixun Lan <dlan@gentoo.org>
Thu, 8 Dec 2016 09:39:15 +0000 (17:39 +0800)
Gentoo-Bug: 601602

Package-Manager: portage-2.3.3

app-emulation/lxc/lxc-2.0.6-r1.ebuild [moved from app-emulation/lxc/lxc-2.0.6.ebuild with 95% similarity]

similarity index 95%
rename from app-emulation/lxc/lxc-2.0.6.ebuild
rename to app-emulation/lxc/lxc-2.0.6-r1.ebuild
index 11e28397c2578b1eaa78b25bcb28d24c4564c9c0..b6928bc24b60c22c4d2839a7054c5960416538c5 100644 (file)
@@ -158,10 +158,11 @@ src_compile() {
 src_install() {
        default
 
+       mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
        # start-ephemeral is no longer a command but removing it here
        # generates QA warnings (still in upstream completion script)
-       bashcomp_alias ${PN} \
-               ${PN}-{start,attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
+       bashcomp_alias ${PN}-start \
+               ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
 
        if use python; then
                pushd "${S}/src/python-lxc" > /dev/null