From 60c7b736ceb3beb352aba53c0e83f2a895548021 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 20 Feb 2018 16:20:33 +1100 Subject: [PATCH] msan_builder: reload apt package after update. --- infra/base-images/base-msan-builder/packages/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infra/base-images/base-msan-builder/packages/package.py b/infra/base-images/base-msan-builder/packages/package.py index 324044ad0..059c23587 100644 --- a/infra/base-images/base-msan-builder/packages/package.py +++ b/infra/base-images/base-msan-builder/packages/package.py @@ -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)