[tor-commits] [tor-browser-build/maint-10.0-android] fixup! Bug 40166: Update apt cache before calling pre_pkginst in container-image config

sysrqb at torproject.org sysrqb at torproject.org
Sat Dec 12 21:49:11 UTC 2020


commit ef3d50405ecafb0a0a7b66face528d9a45e25c98
Author: Matthew Finkel <sysrqb at torproject.org>
Date:   Mon Dec 7 23:50:58 2020 +0000

    fixup! Bug 40166: Update apt cache before calling pre_pkginst in container-image config
    
    Bug 40169: Update apt package cache after calling pre_pkginst, too
    
    The creation of some project containers require an updated apt cache
    before executing pre_pkginst, while others require updating the apt
    cache after executing pre_pkginst.
---
 projects/container-image/config | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/projects/container-image/config b/projects/container-image/config
index e8f3f38..7520b8e 100644
--- a/projects/container-image/config
+++ b/projects/container-image/config
@@ -27,9 +27,14 @@ pre: |
   # [% c('var/container/suite') %]
   set -e
   export DEBIAN_FRONTEND=noninteractive
+  # Update the package cache so the container installs the most recent
+  # version of required packages.
   apt-get update -y -q
   [% IF pc(c('origin_project'), 'var/pre_pkginst') -%]
   [% pc(c('origin_project'), 'var/pre_pkginst') %]
+  # Update the package cache again because `pre_pkginst` may change the
+  # package manager configuration.
+  apt-get update -y -q
   [% END -%]
   apt-get upgrade -y -q
   [%





More information about the tor-commits mailing list