On Thu, Apr 05, 2012 at 09:11:09PM +0300, Peter Eisentraut wrote: > 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:
Just to make sure this is not a problem with the script, could you please apply the attached patch to checkrestart (which adds more verbosity) and run checkrestart using 'checkrestart -v -p' ? Please send me the output to see if I can see where the problem might be. Thanks Javier
--- checkrestart.orig 2012-04-09 21:02:09.000000000 +0200 +++ checkrestart 2012-04-09 21:03:27.000000000 +0200 @@ -301,8 +301,12 @@ dpkgProc.wait() if verbose: print "Running:%s" % dpkgQuery + if file_regexp: + print "Will look in lines using regular expression '%s'" % f for line in dpkgProc.stdout.readlines(): line = line.strip() + if verbose: + print "Analysing output: %s" % line if line.find('no path found matching pattern ' + f) > 0: file_in_package = False break
signature.asc
Description: Digital signature