Codebase list debian-goodies / 994415e
checkrestart: Fix "TypeError: a bytes-like object is required, not 'str'" Happened when calling "checkrestart -p": Traceback (most recent call last): File "/usr/sbin/checkrestart", line 742, in <module> main() File "/usr/sbin/checkrestart", line 149, in main toRestart = lsoffilescheck(blacklist = blacklist) File "/usr/sbin/checkrestart", line 358, in lsoffilescheck toRestart = [process for process in list(processes.values()) if process.needsRestart(blacklist)] File "/usr/sbin/checkrestart", line 358, in <listcomp> toRestart = [process for process in list(processes.values()) if process.needsRestart(blacklist)] File "/usr/sbin/checkrestart", line 726, in needsRestart if isdeletedFile(f, blacklist): File "/usr/sbin/checkrestart", line 526, in isdeletedFile file_query_check[file_name] = ispackagedFile(file_name) File "/usr/sbin/checkrestart", line 438, in ispackagedFile if line.find('no path found matching pattern ' + f) > 0: TypeError: a bytes-like object is required, not 'str' Closes: #851992 Thanks to Benedikt Trefzer for the bug report! Axel Beckert 7 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
428428 if verbose:
429429 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
430430 dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
431 env = lc_all_c_env, close_fds=True)
431 env = lc_all_c_env, close_fds=True, universal_newlines=True)
432432 dpkgProc.wait()
433433 if verbose:
434434 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
0 debian-goodies (0.68) UNRELEASED; urgency=medium
1
2 * Fix "TypeError: a bytes-like object is required, not 'str'" when
3 checkrestart is called with "-p". (Closes: #851992) Thanks to Benedikt
4 Trefzer for the bug report!
5
6 -- Axel Beckert <abe@debian.org> Sat, 21 Jan 2017 16:31:33 +0100
7
08 debian-goodies (0.67) unstable; urgency=low
19
210 * Add a rudimentary which-pkg-broke-build. (It's a wrapper around