aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-05-30 15:19:30 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-05-30 16:11:03 -0700
commita61f2d061134d1a61254da4cd8c30cc9b4749cdb (patch)
tree02914fd96ddaf66bab96d276979c8fd8abedc58d
parentmain.py: Add a -a, -s combo sanity check (diff)
downloadmirrorselect-a61f2d061134d1a61254da4cd8c30cc9b4749cdb.tar.gz
mirrorselect-a61f2d061134d1a61254da4cd8c30cc9b4749cdb.tar.bz2
mirrorselect-a61f2d061134d1a61254da4cd8c30cc9b4749cdb.zip
selectors.py: Fix bug 771963 incorrect comparison
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--mirrorselect/selectors.py4
1 files 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) )