Message255570
I don’t understand what 2.7 has got to do with using subprocess or not. Jumping through a shell quoting hoop only to pass a command to the shell to be unquoted seems like double handling. This is how I might rewrite it (untested):
q_cmd = ("rpm", "-q", "--qf", r"%s %s\n" % (...), "--specfile", spec_path)
with subprocess.Popen(q_cmd, stdout=PIPE, universal_newlines=?) as proc:
for line in proc.stdout:
...
if proc.returncode:
raise DistutilsExecError(...) |
|
Date |
User |
Action |
Args |
2015-11-29 11:39:52 | martin.panter | set | recipients:
+ martin.panter, eric.araujo, r.david.murray, SilentGhost, dstufft, TheRegRunner |
2015-11-29 11:39:52 | martin.panter | set | messageid: <1448797192.82.0.464145054408.issue25627@psf.upfronthosting.co.za> |
2015-11-29 11:39:52 | martin.panter | link | issue25627 messages |
2015-11-29 11:39:52 | martin.panter | create | |
|