summaryrefslogtreecommitdiff
blob: f22f0b9e50c8ede5eae96568afcf58a84d4b190c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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 = []