Package uninstallable on Windows

Bug #1442424 reported by Jeremy Skippen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
py3dns
Fix Released
Medium
Unassigned

Bug Description

Rev 96 "Add OSX Support" broke Windows support.

In DNS/Base.py:

     if sys.platform in ('win32', 'nt'):
         from . import win32dns
         defaults['server']=win32dns.RegistryResolve()
+ if sys.platform == 'darwin':
+ ParseOSXSysConfig()
     else:
         return ParseResolvConf()

The if statement "if sys.platform == 'darwin'" should be "elif sys.platform == 'darwin'" otherwise FileNotFoundError: [Errno 2] No such file or directory: '/etc/resolv.conf' on Windows

Related branches

Changed in py3dns:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Scott Kitterman (kitterman) wrote :

I don't know why I didn't see this when you filed it. I'll release a fixed version shortly. Sorry for the delay.

Changed in py3dns:
status: Triaged → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Fixed in 3.1.1.

Changed in py3dns:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.