Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
fix make hosts for current system issue
Browse files Browse the repository at this point in the history
  • Loading branch information
huhamhire committed Jan 24, 2014
1 parent b3fde3f commit 7e60b41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions util/makehosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ class to retrieve configuration with.
self.hostname = parent.hostname
self.custom = parent.custom
make_path = parent.make_path
if parent.make_mode == "system":
self.make_mode = parent.make_mode
if self.make_mode == "system":
self.eol = parent.sys_eol
self.hosts_file = open("hosts", "wb")
elif parent.make_mode == "ansi":
elif self.make_mode == "ansi":
self.eol = "\r\n"
self.hosts_file = open(unicode(make_path), "wb")
elif parent.make_mode == "utf-8":
elif self.make_mode == "utf-8":
self.eol = "\n"
self.hosts_file = open(unicode(make_path), "wb")

Expand Down

0 comments on commit 7e60b41

Please sign in to comment.