linamh/sys-apps/rigo-daemon/files/0001-entropy.spm-rigo-Rigo-related-Python-3-fixes.patch
2021-08-20 15:58:48 +02:00

38 lines
1.5 KiB
Diff

(part of the commit below)
From 8700aade27cb4117bf102afc7bd22ba6acfd8aa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Nizio?= <slawomir.nizio@sabayon.org>
Date: Tue, 11 Feb 2020 22:25:08 +0100
Subject: [PATCH] [entropy.spm, rigo] Rigo related Python 3 fixes
1)
File "/usr/lib/python-exec/python3.6/RigoDaemon_app.py", line 362, in _pusher
fobj.write(chunk)
TypeError: write() argument must be str, not bytes
2)
File "/usr/lib64/python3.6/site-packages/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 77, in __init__
self.buffer = Writer(self, self._std.buffer)
AttributeError: 'FakeOutFile' object has no attribute 'buffer'
---
lib/entropy/spm/plugins/interfaces/portage_plugin/__init__.py | 4 +++-
rigo/RigoDaemon/app/RigoDaemon_app.py | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git rigo/RigoDaemon/app/RigoDaemon_app.py rigo/RigoDaemon/app/RigoDaemon_app.py
index bc89ea0f1..39c4aeefe 100755
--- a/app/RigoDaemon_app.py
+++ b/app/RigoDaemon_app.py
@@ -3158,7 +3158,7 @@ class RigoDaemonService(dbus.service.Object):
"enqueue_application_action: "
"busied, but cannot remove previous path")
try:
- fobj = os.fdopen(tmp_fd, "w")
+ fobj = os.fdopen(tmp_fd, "wb")
except OSError as err:
write_output(
"enqueue_application_action: "
--
2.24.1