checkrestart-0.47-list-comprehension-fix.patch 366 B

123456789101112
  1. --- a/checkrestart
  2. +++ b/checkrestart
  3. @@ -216,7 +216,7 @@
  4. package.initscripts.append(path)
  5. # Remove duplicate inits
  6. - package.initscripts = [ u for u in package.initscripts if u not in locals()['_[1]'] ]
  7. + package.initscripts = list(set(package.initscripts))
  8. restartable = []
  9. nonrestartable = []