Codebase list debian-goodies / 0a28741
checkrestart: Improve readability of the DEBUG output when running commands Add a space between Running: and the command. Print the command with spaces instead of Python syntax. Paul Wise 7 years ago
2 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
174174
175175 dpkgQuery = ["dpkg-query", "--search"] + list(programs.keys())
176176 if verbose:
177 print("[DEBUG] Running:%s" % dpkgQuery)
177 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
178178 dpkgProc = subprocess.Popen(dpkgQuery, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
179179 env = lc_all_c_env)
180180 while True:
236236 for package in list(packages.values()):
237237 dpkgQuery = ["dpkg-query", "--listfiles", package.name]
238238 if verbose:
239 print("[DEBUG] Running:%s" % dpkgQuery)
239 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
240240 dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
241241 env = lc_all_c_env)
242242 while True:
426426 # If it exists, run dpkg-query
427427 dpkgQuery = ["dpkg-query", "--search", f ]
428428 if verbose:
429 print("[DEBUG] Running:%s" % dpkgQuery)
429 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
430430 dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
431431 env = lc_all_c_env, close_fds=True)
432432 dpkgProc.wait()
433433 if verbose:
434 print("[DEBUG] Running:%s" % dpkgQuery)
434 print("[DEBUG] Running: %s" % ' '.join(dpkgQuery))
435435 for line in dpkgProc.stdout.readlines():
436436 line = line.strip()
437437 if line.find('no path found matching pattern ' + f) > 0:
0 debian-goodies (0.66) UNRELEASED; urgency=medium
1
2 * checkrestart: Improve readability of the DEBUG output when running commands
3
4 -- Paul Wise <pabs@debian.org> Fri, 05 Aug 2016 11:02:03 +0800
5
06 debian-goodies (0.65) unstable; urgency=low
17
28 [ Paul Wise ]