diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-04-07 13:24:30 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-04-07 13:24:30 -0700 |
commit | d4ac468a24ad4b97e5cece063e537997400601a6 (patch) | |
tree | 36a6694c567e0ba9aaae1c419db32bd22803144f | |
parent | a9964a380476f7585465f310f230e85a0d783be8 (diff) | |
download | portage-d4ac468a24ad4b97e5cece063e537997400601a6.tar.gz portage-d4ac468a24ad4b97e5cece063e537997400601a6.tar.bz2 portage-d4ac468a24ad4b97e5cece063e537997400601a6.zip |
In _run_pkg_pretend(), write ebuild bytes from tbz2.getfile() in binary mode
for python3 compatibility.
-rw-r--r-- | pym/_emerge/Scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index b80fa9007..7a0b95a95 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -901,7 +901,7 @@ class Scheduler(PollScheduler): ebuild_file_contents = portage.xpak.tbz2(tbz2_file).getfile(ebuild_file_name) os.makedirs(os.path.join(tmpdir, x.category, x.pf)) ebuild_path = os.path.join(tmpdir, x.category, x.pf, ebuild_file_name) - file = open(ebuild_path, 'w') + file = open(ebuild_path, 'wb') file.write(ebuild_file_contents) file.close() |