mirror of
https://git.proxmox.com/git/mirror_ifupdown2
synced 2025-08-15 13:37:49 +00:00
completion: removing argcomplete support
this feature doesn't seem to be working anyway. This can be revisited in the future but this allows us to drop the python3-argcomplete dependency for now Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
parent
9ddfbfff85
commit
62d960cc1b
@ -50,7 +50,7 @@ You might need to manually download dependencies. Mandatory dependencies:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ apt-get install build-essential devscripts dh-systemd fakeroot python-all python-docutils iproute2 python-ipaddr python-argcomplete python-setuptools
|
$ apt-get install build-essential devscripts dh-systemd fakeroot python-all python-docutils iproute2 python-ipaddr python-setuptools
|
||||||
|
|
||||||
Suggested dependencies:
|
Suggested dependencies:
|
||||||
|
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -17,7 +17,7 @@ Architecture: all
|
|||||||
Provides: ifupdown
|
Provides: ifupdown
|
||||||
Conflicts: ifupdown
|
Conflicts: ifupdown
|
||||||
Replaces: ifupdown
|
Replaces: ifupdown
|
||||||
Depends: ${python3:Depends}, ${misc:Depends}, iproute2, python3-argcomplete
|
Depends: ${python3:Depends}, ${misc:Depends}, iproute2
|
||||||
Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako
|
Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako
|
||||||
Description: Network Interface Management tool similar to ifupdown
|
Description: Network Interface Management tool similar to ifupdown
|
||||||
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides
|
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides
|
||||||
|
1
debian/ifupdown2.bash-completion
vendored
1
debian/ifupdown2.bash-completion
vendored
@ -1 +0,0 @@
|
|||||||
ifupdown2/completion/ifup
|
|
@ -6,7 +6,7 @@ Prerequisites
|
|||||||
* python-ifupdown2 is currently only tested on debian wheezy
|
* python-ifupdown2 is currently only tested on debian wheezy
|
||||||
* python-ifupdown2 needs python version 2.6 or greater
|
* python-ifupdown2 needs python version 2.6 or greater
|
||||||
* Depends on: python-stdeb (for deb builds), python-docutils
|
* Depends on: python-stdeb (for deb builds), python-docutils
|
||||||
(for rst2man), python-argcomplete, 'python-ipaddr'
|
(for rst2man), 'python-ipaddr'
|
||||||
* Depends on python-gvgen package for printing interface graphs (this will be made optional in the future)
|
* Depends on python-gvgen package for printing interface graphs (this will be made optional in the future)
|
||||||
* Optional dependency for template engine: python-mako
|
* Optional dependency for template engine: python-mako
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
_python_argcomplete() {
|
|
||||||
local IFS=''
|
|
||||||
COMPREPLY=( $(IFS="$IFS" COMP_LINE="$COMP_LINE" COMP_POINT="$COMP_POINT" _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" _ARGCOMPLETE=1 "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )
|
|
||||||
if [[ $? != 0 ]]; then
|
|
||||||
unset COMPREPLY
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
complete -F _python_argcomplete ifup ifdown ifquery ifreload
|
|
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
import argcomplete
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ifupdown2.ifupdown.utils import utils
|
from ifupdown2.ifupdown.utils import utils
|
||||||
@ -77,7 +76,6 @@ class Parse:
|
|||||||
elif self.op == 'query':
|
elif self.op == 'query':
|
||||||
self.update_ifquery_argparser(argparser)
|
self.update_ifquery_argparser(argparser)
|
||||||
self.update_common_argparser(argparser)
|
self.update_common_argparser(argparser)
|
||||||
argcomplete.autocomplete(argparser)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.args = argparser.parse_args(self.argv)
|
self.args = argparser.parse_args(self.argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user