From 7cc5799d66b29c9ef2919af24bafe0357c450493 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Tue, 31 Oct 2023 07:35:44 +0100 Subject: [PATCH] deb: make separate vng and virtme-ng bash autocompletion files Some versions of register-python-argcomplete do not support multiple arguments, so create a separate bash autocompltion file for vng and virtme-ng to prevent potential errors. Signed-off-by: Andrea Righi --- .gitignore | 1 + debian/rules | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 51b557f..7edb669 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ build dist .mypy_cache virtme-ng-prompt +vng-prompt virtme_ng.egg-info/ .pybuild/ debian/virtme-ng/ diff --git a/debian/rules b/debian/rules index 91ccc8d..ecb424f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,8 @@ #!/usr/bin/make -f virtme-ng-prompt: - (register-python-argcomplete virtme-ng vng || register-python-argcomplete3 virtme-ng vng) > $@ + (register-python-argcomplete virtme-ng || register-python-argcomplete3 virtme-ng) > virtme-ng-prompt + (register-python-argcomplete vng || register-python-argcomplete3 vng) > vng-prompt %: dh $@ --with python3 --buildsystem=pybuild @@ -10,3 +11,4 @@ override_dh_install: virtme-ng-prompt dh_install mkdir -p $(CURDIR)/debian/virtme-ng/etc/bash_completion.d install -m 0644 virtme-ng-prompt $(CURDIR)/debian/virtme-ng/etc/bash_completion.d/virtme-ng-prompt + install -m 0644 vng-prompt $(CURDIR)/debian/virtme-ng/etc/bash_completion.d/vng-prompt