Stage the sw-patch bash completion properly on debian

The sw-patch bash-completion file needs to be located at
usr/share/bash-completion/completions/sw-patch

Test Plan:
 Build / Boot / Bootstrap / Install on Debian
 Verify sw-patch <tab>  shows the sw-patch commands

Story: 2009969
Task: 45201
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Icdb3915fbc36f753d058a643bc04a6fdb0923867
This commit is contained in:
Al Bailey 2022-04-27 22:13:47 +00:00
parent 79b7bb6ebf
commit 4daa55b83c
3 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@ usr/sbin
etc/pmon.d
etc/init.d
lib/systemd/system
usr/share/bash-completion
usr/share/bash-completion/completions

View File

@ -6,5 +6,5 @@ etc/pmon.d/sw-patch-controller-daemon.conf
etc/init.d/sw-patch-controller-daemon
etc/init.d/sw-patch-controller
lib/systemd/system/sw-patch-controller-daemon.service
usr/share/bash-completion/sw-patch
usr/share/bash-completion/completions/sw-patch
lib/systemd/system/sw-patch-controller.service

View File

@ -17,7 +17,7 @@ override_dh_install:
python3 setup.py install -f --install-layout=deb --root=${DEBIAN_DESTDIR}
install -m 755 -d ${DEBIAN_DESTDIR}/usr/sbin
install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion
install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion/completions
install -m 755 -d ${DEBIAN_DESTDIR}/etc/goenabled.d
install -m 755 -d ${DEBIAN_DESTDIR}/etc/init.d
install -m 755 -d ${DEBIAN_DESTDIR}/etc/logrotate.d
@ -46,7 +46,7 @@ override_dh_install:
install -m 444 bin/pmon-sw-patch-agent.conf \
${DEBIAN_DESTDIR}/etc/pmon.d/sw-patch-agent.conf
install -m 444 bin/*.service ${DEBIAN_DESTDIR}/lib/systemd/system
install -m 444 bin/sw-patch.completion ${DEBIAN_DESTDIR}/usr/share/bash-completion/sw-patch
install -m 444 bin/sw-patch.completion ${DEBIAN_DESTDIR}/usr/share/bash-completion/completions/sw-patch
install -m 400 bin/patch-functions \
${DEBIAN_DESTDIR}/etc/patching/patch-functions
install -D -m 444 bin/patch-tmpdirs.conf \