On lör, 2012-03-31 at 22:53 +0200, Javier Fernández-Sanguino Peña wrote:
> On Sat, Mar 31, 2012 at 03:10:01PM +0300, Peter Eisentraut wrote:
> > > Does this sound like a viable approach?
> >
> > It's worth a try.
>
> You can find a first attempt at coding this behaviour at
> http://anonscm.debian.org/gitweb/?p=collab-maint/debian-goodies.git;a=commitdiff;h=09c21d49555d13153131da3f463aa54452c73fd7
>
> The -p option should work now with upgrades in *unstable* systems too as old
> libraries are detected and found in (newer) library upgrades. It seems to
> work properly in my unstable desktop when I upgrade some libraries.
>
> Could you give it a try?
It currently crashes for me:
$ sudo ./checkrestart -p
Traceback (most recent call last):
File "./checkrestart", line 548, in <module>
main()
File "./checkrestart", line 128, in main
toRestart = lsofcheck(blacklist = blacklist)
File "./checkrestart", line 273, in lsofcheck
processes.values())
File "./checkrestart", line 272, in <lambda>
toRestart = filter(lambda process: process.needsRestart(blacklist),
File "./checkrestart", line 533, in needsRestart
if isdeletedFile(f, blacklist):
File "./checkrestart", line 388, in isdeletedFile
file_query_check[file_name] = ispackagedFile(file_name)
File "./checkrestart", line 309, in ispackagedFile
if line.endswith(f) or ( file_regexp and re.search(f, line)):
File "/usr/lib/python2.7/re.py", line 142, in search
return _compile(pattern, flags).search(string)
File "/usr/lib/python2.7/re.py", line 244, in _compile
raise error, v # invalid expression
sre_constants.error: multiple repeat
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]