Skip to content

Commit 7cc5799

Browse files
author
Andrea Righi
committed
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 <andrea.righi@canonical.com>
1 parent 0e5c315 commit 7cc5799

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build
44
dist
55
.mypy_cache
66
virtme-ng-prompt
7+
vng-prompt
78
virtme_ng.egg-info/
89
.pybuild/
910
debian/virtme-ng/

debian/rules

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/make -f
22

33
virtme-ng-prompt:
4-
(register-python-argcomplete virtme-ng vng || register-python-argcomplete3 virtme-ng vng) > $@
4+
(register-python-argcomplete virtme-ng || register-python-argcomplete3 virtme-ng) > virtme-ng-prompt
5+
(register-python-argcomplete vng || register-python-argcomplete3 vng) > vng-prompt
56

67
%:
78
dh $@ --with python3 --buildsystem=pybuild
@@ -10,3 +11,4 @@ override_dh_install: virtme-ng-prompt
1011
dh_install
1112
mkdir -p $(CURDIR)/debian/virtme-ng/etc/bash_completion.d
1213
install -m 0644 virtme-ng-prompt $(CURDIR)/debian/virtme-ng/etc/bash_completion.d/virtme-ng-prompt
14+
install -m 0644 vng-prompt $(CURDIR)/debian/virtme-ng/etc/bash_completion.d/vng-prompt

0 commit comments

Comments
 (0)