Commit b3363872 authored by Alex Hornby's avatar Alex Hornby Committed by Facebook GitHub Bot

fix getdeps fetch on python 3.6

Summary: The getdeps fetch step runs early on system python, so it has to work with it.  Subprocess capture_output was from 3.7 only, so let's switch to the alternate form that also works on ubuntu 18.04's python 3.6 install

Reviewed By: Croohand

Differential Revision: D32836861

fbshipit-source-id: bd492c0ee90edadbc9124d5820ddfe515fa46f43
parent 59a37fd1
......@@ -182,7 +182,7 @@ class SystemPackageFetcher(object):
cmd = ["dpkg", "-s"] + sorted(self.packages)
if cmd:
proc = subprocess.run(cmd, capture_output=True)
proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if proc.returncode == 0:
# captured as binary as we will hash this later
self.installed = proc.stdout
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment