checkrestart-0.47-cwd.patch 547 B

123456789101112
  1. --- /usr/sbin/checkrestart 2016-02-22 08:08:34.000000000 -0800
  2. +++ /usr/sbin/checkrestarta 2016-02-22 08:19:16.013507231 -0800
  3. @@ -114,7 +114,7 @@
  4. def portage_fQuery(programs, packages):
  5. dpkgQuery = ["qfile", "-C"] + programs.keys()
  6. - dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE)
  7. + dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, cwd='/')
  8. for line in dpkgProc.stdout.readlines():
  9. packagename, program = line[:-1].split(' ')
  10. program = re.match('\((.*)\)', program).group(1)