commit:     a61f2d061134d1a61254da4cd8c30cc9b4749cdb
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon May 30 22:19:30 2022 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon May 30 23:11:03 2022 +0000
URL:        https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=a61f2d06

selectors.py: Fix bug 771963 incorrect comparison

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 mirrorselect/selectors.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py
index 4564f11..74405a7 100644
--- a/mirrorselect/selectors.py
+++ b/mirrorselect/selectors.py
@@ -63,7 +63,7 @@ from mirrorselect.output import encoder, get_encoding, 
decode_selection
 
 # The netselect --ipv4 and --ipv6 options are supported only
 # with >=net-analyzer/netselect-0.4[ipv6(+)].
-NETSELECT_SUPPORTS_IPV4_IPV6 = False
+NETSELECT_SUPPORTS_IPV4_IPV6 = True
 
 
 class Shallow(object):
@@ -260,7 +260,7 @@ class Deep(object):
                for host in hosts:
 
                        prog += 1
-                       if self.test_file is not 'mirrorselect-test':
+                       if self.test_file != 'mirrorselect-test':
                                self.output.print_info(
                                        'Downloading %s files from each 
mirror... [%s of %s]'
                                        % (self.test_file, prog, num_hosts) )

Reply via email to