Commit 207a7dc
committed
Support pip freeze URL format
`pip freeze` (https://pip.pypa.io/en/stable/cli/pip_freeze/) "outputs
installed packages in requirements format"
(https://pip.pypa.io/en/stable/reference/requirement-specifiers/).
As of pip 19.1, pip also supports specifying a requirement as a URL,
and, for packages that were installed using URL format, `pip freeze`
will output package requirements in URL format.
However, Puppet's `pip freeze` parser doesn't support URL format, so
it doesn't realize that a package is installed if it uses URL format,
causing every `puppet agent` run to attempt to reinstall the package.
This PR adds support for parsing `pip freeze` URL format.1 parent d068941 commit 207a7dc
File tree
2 files changed
+11
-0
lines changed- lib/puppet/provider/package
- spec/unit/provider/package
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
0 commit comments