Commit 02d2e60
feat: fetch held deb packages' version (#618)
* propagate return value from @Deploy decorator
e.g. this allows writing code like:
@Deploy
def ripgrep(**kwargs):
return apt.packages('ripgrep', **kwargs)
res = ripgrep()
if res.changed:
# do something else
* feat: support held deb packages
It would be useful to fetch the version number of held deb packages to have scripts that manually unhold them to be able to upgrade if the need be.
Co-authored-by: Dima Gerasimov <karlicoss@gmail.com>1 parent 1e0d124 commit 02d2e60
File tree
2 files changed
+14
-1
lines changed- pyinfra/facts
- tests/facts/deb.DebPackages
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments