aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/py3_inheritable.patch
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahm@jadupc.com>2023-08-03 16:33:41 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-08-03 16:33:41 +0600
commit70faa8e9a0ff3cba74b4f753e257d56b768fcbd2 (patch)
tree3a49460715f7319d100e0cc9c1a278758500c7c8 /debian/patches/py3_inheritable.patch
downloadaptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.tar.gz
aptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.zip
Import Upstream version 1.1.1+bzr982
Diffstat (limited to '')
-rw-r--r--debian/patches/py3_inheritable.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/py3_inheritable.patch b/debian/patches/py3_inheritable.patch
new file mode 100644
index 0000000..f642733
--- /dev/null
+++ b/debian/patches/py3_inheritable.patch
@@ -0,0 +1,14 @@
+=== modified file 'aptdaemon/progress.py'
+--- a/aptdaemon/progress.py 2014-02-07 20:40:15 +0000
++++ b/aptdaemon/progress.py 2014-04-11 11:58:33 +0000
+@@ -395,6 +395,9 @@
+ self.last_activity = 0
+ self.child_pid = 0
+ self.status_parent_fd, self.status_child_fd = os.pipe()
++ if hasattr(os, "set_inheritable"):
++ os.set_inheritable(self.status_parent_fd, True)
++ os.set_inheritable(self.status_child_fd, True)
+ self.output = ""
+ self._line_buffer = ""
+
+