public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-admin/checkrestart/files: checkrestart-0.47-list-comprehension-fix.patch
@ 2011-02-12 17:48 Jeroen Roovers (jer)
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2011-02-12 17:48 UTC (permalink / raw
  To: gentoo-commits

jer         11/02/12 17:48:34

  Added:                checkrestart-0.47-list-comprehension-fix.patch
  Log:
  Apply python 2.7 patch by Matthias Liebig for bug #352219 by Andrew Savchenko.
  
  (Portage version: 2.2.0_alpha23/cvs/Linux i686)

Revision  Changes    Path
1.1                  app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch?rev=1.1&content-type=text/plain

Index: checkrestart-0.47-list-comprehension-fix.patch
===================================================================
--- a/checkrestart
+++ b/checkrestart
@@ -216,7 +216,7 @@
                     package.initscripts.append(path)
 
             # Remove duplicate inits
-            package.initscripts = [ u for u in package.initscripts if u not in locals()['_[1]'] ]
+            package.initscripts = list(set(package.initscripts))
 
     restartable = []
     nonrestartable = []






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-12 17:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-12 17:48 [gentoo-commits] gentoo-x86 commit in app-admin/checkrestart/files: checkrestart-0.47-list-comprehension-fix.patch Jeroen Roovers (jer)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox