Commit e8a386c
committed
Restructure the package provider to use the candidate_version accessor vs the variable directly.
This allows us to delay loading the candidate_version until it's actually needed.
For example, it's not needed if we didn't specify a version, we're doing an install, and we already have a version installed.
If we do this, then we can possibly speed up the other providers because they don't have to look up a candidate version, only
an actual installed version. Some can do this via disk instead of via the package maintainers, and this makes it go faster.1 parent d4a4742 commit e8a386c
1 file changed
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 39 | | |
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
| 43 | + | |
51 | 44 | | |
52 | 45 | | |
| 46 | + | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| 51 | + | |
57 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
| 72 | + | |
74 | 73 | | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
0 commit comments