From 1ff73ef214c3239059f5254426ecf6365b66cdc7 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Tue, 4 Jan 2022 12:43:01 -0500 Subject: [PATCH] Fix lintian error Lintian complains that bash-completion scripts are installed in the wrong place. Install them in the right place. Story: 2009101 Task: 43076 Signed-off-by: Charles Short Change-Id: I0e6afbcbd9b2d59da025667156ccd0a53b6e3b4b --- cgcs-patch/debian/deb_folder/cgcs-patch-controller.dirs | 2 +- cgcs-patch/debian/deb_folder/cgcs-patch-controller.install | 2 +- cgcs-patch/debian/deb_folder/rules | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cgcs-patch/debian/deb_folder/cgcs-patch-controller.dirs b/cgcs-patch/debian/deb_folder/cgcs-patch-controller.dirs index fb26066f..0ee23693 100644 --- a/cgcs-patch/debian/deb_folder/cgcs-patch-controller.dirs +++ b/cgcs-patch/debian/deb_folder/cgcs-patch-controller.dirs @@ -2,4 +2,4 @@ usr/sbin etc/pmon.d etc/init.d lib/systemd/system -etc/bash_completion.d +usr/share/bash-completion diff --git a/cgcs-patch/debian/deb_folder/cgcs-patch-controller.install b/cgcs-patch/debian/deb_folder/cgcs-patch-controller.install index d634f16c..c08af321 100644 --- a/cgcs-patch/debian/deb_folder/cgcs-patch-controller.install +++ b/cgcs-patch/debian/deb_folder/cgcs-patch-controller.install @@ -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 -etc/bash_completion.d/sw-patch +usr/share/bash-completion/sw-patch lib/systemd/system/sw-patch-controller.service diff --git a/cgcs-patch/debian/deb_folder/rules b/cgcs-patch/debian/deb_folder/rules index e8a5df00..2b9a8831 100755 --- a/cgcs-patch/debian/deb_folder/rules +++ b/cgcs-patch/debian/deb_folder/rules @@ -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}/etc/bash_completion.d + install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion 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}/etc/bash_completion.d/sw-patch + install -m 444 bin/sw-patch.completion ${DEBIAN_DESTDIR}/usr/share/bash-completion/sw-patch install -m 400 bin/patch-functions \ ${DEBIAN_DESTDIR}/etc/patching/patch-functions install -D -m 444 bin/patch-tmpdirs.conf \