Merge lp:~verterok/ubuntu/lucid/pyinotify/missing_wd into lp:ubuntu/lucid/pyinotify

Proposed by Guillermo Gonzalez
Status: Merged
Merged at revision: not available
Proposed branch: lp:~verterok/ubuntu/lucid/pyinotify/missing_wd
Merge into: lp:ubuntu/lucid/pyinotify
Diff against target: 99 lines (+49/-3)
5 files modified
debian/changelog (+7/-0)
debian/control (+1/-1)
debian/patches/series (+1/-0)
debian/patches/wd_missing.patch (+36/-0)
debian/rules (+4/-2)
To merge this branch: bzr merge lp:~verterok/ubuntu/lucid/pyinotify/missing_wd
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+18266@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

This branch adds a patch to fix Bug #507126, upstream Bug http://trac.dbzteam.org/pyinotify/ticket/36

Revision history for this message
James Westby (james-w) wrote :

Thanks, uploaded with a couple of tweaks, notably running update-maintainer
and adding https://wiki.ubuntu.com/UbuntuDevelopment/PatchTaggingGuidelines
for the patch you added.

Thanks,

James

review: Approve
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi James,

Thanks for fixing it, I'll take look to the docs (for the next merge proposal ;-) )

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-01-11 02:28:44 +0000
3+++ debian/changelog 2010-01-29 16:30:31 +0000
4@@ -1,3 +1,10 @@
5+pyinotify (0.8.9-1ubuntu1) lucid; urgency=low
6+
7+ * Cherry picked patch from upstream to fix event arrival after removing a
8+ watch (LP: #507126)
9+
10+ -- Guillermo Gonzalez <guillermo.gonzalez@canonical.com> Fri, 29 Jan 2010 12:07:53 -0300
11+
12 pyinotify (0.8.9-1) unstable; urgency=low
13
14 * New upstream release
15
16=== modified file 'debian/control'
17--- debian/control 2009-11-11 19:29:08 +0000
18+++ debian/control 2010-01-29 16:30:31 +0000
19@@ -3,7 +3,7 @@
20 Priority: optional
21 Maintainer: Mikhail Gusarov <dottedmag@dottedmag.net>
22 Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
23-Build-Depends: debhelper (>= 7), python
24+Build-Depends: debhelper (>= 7), python, quilt
25 Build-Depends-Indep: python-epydoc, python-support (>= 0.3)
26 Standards-Version: 3.8.3
27 XS-Python-Version: >=2.4
28
29=== added directory 'debian/patches'
30=== added file 'debian/patches/series'
31--- debian/patches/series 1970-01-01 00:00:00 +0000
32+++ debian/patches/series 2010-01-29 16:30:31 +0000
33@@ -0,0 +1,1 @@
34+wd_missing.patch
35
36=== added file 'debian/patches/wd_missing.patch'
37--- debian/patches/wd_missing.patch 1970-01-01 00:00:00 +0000
38+++ debian/patches/wd_missing.patch 2010-01-29 16:30:31 +0000
39@@ -0,0 +1,36 @@
40+=== modified file 'python2/pyinotify.py'
41+--- pyinotify-0.8.9.orig/python2/pyinotify.py 2010-01-11 02:28:44 +0000
42++++ pyinotify-0.8.9/python2/pyinotify.py 2010-01-25 17:01:22 +0000
43+@@ -1121,6 +1121,13 @@
44+ while self._eventq:
45+ raw_event = self._eventq.popleft() # pop next event
46+ watch_ = self._watch_manager.get_watch(raw_event.wd)
47++ if watch_ is None:
48++ # Not really sure how we ended up here, nor how we should
49++ # handle these types of events and if it is appropriate to
50++ # completly skip them (like we are doing here).
51++ log.warning("Unable to retrieve Watch object associated to %s",
52++ repr(raw_event))
53++ continue
54+ revent = self._sys_proc_fun(raw_event) # system processings
55+ if watch_ and watch_.proc_fun:
56+ watch_.proc_fun(revent) # user processings
57+
58+=== modified file 'python3/pyinotify.py'
59+--- pyinotify-0.8.9.orig/python3/pyinotify.py 2010-01-11 02:28:44 +0000
60++++ pyinotify-0.8.9/python3/pyinotify.py 2010-01-25 17:01:36 +0000
61+@@ -1084,6 +1084,13 @@
62+ while self._eventq:
63+ raw_event = self._eventq.popleft() # pop next event
64+ watch_ = self._watch_manager.get_watch(raw_event.wd)
65++ if watch_ is None:
66++ # Not really sure how we ended up here, nor how we should
67++ # handle these types of events and if it is appropriate to
68++ # completly skip them (like we are doing here).
69++ log.warning("Unable to retrieve Watch object associated to %s",
70++ repr(raw_event))
71++ continue
72+ revent = self._sys_proc_fun(raw_event) # system processings
73+ if watch_ and watch_.proc_fun:
74+ watch_.proc_fun(revent) # user processings
75+
76
77=== modified file 'debian/rules'
78--- debian/rules 2010-01-11 02:28:44 +0000
79+++ debian/rules 2010-01-29 16:30:31 +0000
80@@ -3,7 +3,9 @@
81 # Based on sample debian/rules that uses debhelper.
82 # GNU copyright 1997 to 1999 by Joey Hess.
83
84-clean:
85+include /usr/share/quilt/quilt.make
86+
87+clean: unpatch
88 dh_testdir
89 dh_testroot
90
91@@ -14,7 +16,7 @@
92
93 dh_clean
94
95-build:
96+build: patch
97
98 install: build
99 dh_testdir

Subscribers

People subscribed via source and target branches