diff options
Diffstat (limited to 'devel/py-inotify-simple')
-rw-r--r-- | devel/py-inotify-simple/Makefile | 1 | ||||
-rw-r--r-- | devel/py-inotify-simple/files/patch-inotify__simple.py | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/devel/py-inotify-simple/Makefile b/devel/py-inotify-simple/Makefile index cfc9a1acb3c4..c1ea5c6694c2 100644 --- a/devel/py-inotify-simple/Makefile +++ b/devel/py-inotify-simple/Makefile @@ -1,5 +1,6 @@ PORTNAME= inotify-simple PORTVERSION= 2.0.1 +PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-inotify-simple/files/patch-inotify__simple.py b/devel/py-inotify-simple/files/patch-inotify__simple.py index 2b8929facf1a..776f877be4d8 100644 --- a/devel/py-inotify-simple/files/patch-inotify__simple.py +++ b/devel/py-inotify-simple/files/patch-inotify__simple.py @@ -1,6 +1,14 @@ --- inotify_simple.py.orig 2025-08-25 06:27:48 UTC +++ inotify_simple.py -@@ -76,7 +76,7 @@ class INotify(FileIO): +@@ -3,6 +3,7 @@ from enum import IntEnum + from collections import namedtuple + from struct import unpack_from, calcsize + from select import poll ++from select import POLLIN + from time import sleep + from ctypes import CDLL, get_errno, c_int + from ctypes.util import find_library +@@ -76,12 +77,12 @@ class INotify(FileIO): object is garbage collected or when `~inotify_simple.INotify.close` is called.""" @@ -9,3 +17,9 @@ flags = (not inheritable) * os.O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK fd = _libc_call(_libc.inotify_init1, flags) super().__init__(fd, mode='rb', closefd=closefd) + self._poller = poll() +- self._poller.register(self.fileno()) ++ self._poller.register(self.fileno(), POLLIN) + + def add_watch(self, path, mask): + """Wrapper around ``inotify_add_watch()``. Returns the watch |