Skip to content

Commit

Permalink
/etc/zypp/locks: Pin Python 3.6 using locks
Browse files Browse the repository at this point in the history
The pinning method added in commit 3619602 relies
on the name of the 'libpython3' package.
The same can be achieved with locks.
  • Loading branch information
jayvdb committed Aug 6, 2017
1 parent c644d39 commit 22e3ce7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ RUN \
libopenssl-devel \
# pcre needed by Julia runtime
libpcre2-8-0 \
libpython3_6m1_0 \
libxml2-devel \
# libxml2-tools provides xmllint
libxml2-tools \
Expand Down
7 changes: 7 additions & 0 deletions host/etc/zypp/locks
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# postfix has more dependencies than its alternatives like exim
solvable_name: postfix

# Only allow Python 3.6
match_type: exact
solvable_name: python3-base < 3.6

match_type: exact
solvable_name: python3-base >= 3.7

# julia-compat is unoptimised
match_type: exact
solvable_name: julia-compat
Expand Down

0 comments on commit 22e3ce7

Please sign in to comment.