As per jpakkane's suggestion use `Popen_safe` instead of `subprocess.getoutput`

Jussi suggested to use `Popen_safe` from meson's library for portability reasons.
pull/2373/head
Leif Middelschulte 7 years ago
parent 50376cca37
commit 078527a744
  1. 3
      mesonbuild/wrap/wrap.py

@ -237,7 +237,8 @@ class Resolver:
revno = p.get('revision')
is_there = os.path.isdir(checkoutdir)
if is_there:
current_revno = subprocess.getoutput(' '.join(['svn', 'info', '--show-item', 'revision', checkoutdir]))
p, out = Popen_safe(['svn', 'info', '--show-item', 'revision', checkoutdir])
current_revno = out
if current_revno == revno:
return

Loading…
Cancel
Save