Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/manifests/legacy.pp

Issue 29784619: #11294 - Apply workaround for broken pip package in Debian "jessie" (Closed)
Patch Set: #11294 - Address feedback from codereview Created May 18, 2018, 1:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « manifests/site.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/legacy.pp
===================================================================
--- a/modules/adblockplus/manifests/legacy.pp
+++ b/modules/adblockplus/manifests/legacy.pp
@@ -16,4 +16,27 @@
force => true,
recurse => true,
}
+
+ # http://hub.eyeo.com/issues/11294#note-3
+ if $::lsbdistcodename == 'jessie' {
+
+ # https://stackoverflow.com/questions/27341064/
+ package {'python-pip':
+ ensure => 'absent',
+ name => 'python-pip',
+ }
+
+ # http://setuptools.readthedocs.io/en/latest/easy_install.html
+ package {'python-setuptools':
+ before => Package['python-pip'],
+ ensure => 'present',
+ }
+
+ # https://github.com/pypa/pip/issues/5247
+ exec {'/usr/bin/easy_install pip==9.0.3':
+ before => Package['python-pip'],
+ creates => '/usr/local/bin/pip',
+ require => Package['python-setuptools'],
+ }
+ }
}
« no previous file with comments | « manifests/site.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld