msan_builder: reload apt package after update.

This commit is contained in:
Oliver Chang 2018-02-20 16:20:33 +11:00
parent eb1187fc76
commit 60c7b736ce
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ class Package(object):
subprocess.check_call(['apt-get', 'update'])
subprocess.check_call(['apt-get', 'build-dep', '-y', self.name])
# Reload package after update.
self.apt_version = (
apt.Cache()[self.apt_version.package.name].candidate)
def DownloadSource(self, download_directory):
"""Download the source for a package."""
self.PreDownload(download_directory)