Unverified Commit 360a3ac3 authored by boklm's avatar boklm
Browse files

docker-image: add option to avoid sorting packages list

By default, we sort the list of installed packages. This allows sharing
containers with identical list of packages, even if they are not listed
in the same order. In the cases where the installation order is
important, var/sort_deps should be set to 0.
parent 01c2dad7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -29,12 +29,15 @@ pre: |
  [%
     deps = [];
     IF pc(c('origin_project'), 'var/deps');
       CALL deps.import(pc(c('origin_project'), 'var/deps').sort);
       CALL deps.import(pc(c('origin_project'), 'var/deps'));
     END;
     IF pc(c('origin_project'), 'var/arch_deps');
       CALL deps.import(pc(c('origin_project'), 'var/arch_deps').sort);
       CALL deps.import(pc(c('origin_project'), 'var/arch_deps'));
     END;
     IF deps.size;
       IF pc(c('origin_project'), 'var/sort_deps');
         deps = deps.sort;
       END;
       FOREACH pkg IN deps;
         SET p = tmpl(pkg);
         IF p;
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ pkg_type: build
var:
  torbrowser_version: '6.5n'
  copyright_year: '2016'
  # By default, we sort the list of installed packages. This allows sharing
  # containers with identical list of packages, even if they are not listed
  # in the same order. In the cases where the installation order is
  # important, sort_deps should be set to 0.
  sort_deps: 1
  build_id: '[% sha256(c("var/build_id_txt")).substr(0, 6) %]'
  build_id_txt: |
    [% c("version") %]