projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9964a3
)
In _run_pkg_pretend(), write ebuild bytes from tbz2.getfile() in binary mode
author
Zac Medico
<zmedico@gentoo.org>
Wed, 7 Apr 2010 20:24:30 +0000
(13:24 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 7 Apr 2010 20:24:30 +0000
(13:24 -0700)
for python3 compatibility.
pym/_emerge/Scheduler.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/Scheduler.py
b/pym/_emerge/Scheduler.py
index b80fa900715a277d9137954bd70b148a120a60bb..7a0b95a9566ee7258545ad23bc461bb4f519a0f4 100644
(file)
--- 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, 'w
b
')
file.write(ebuild_file_contents)
file.close()