Commit 6f680f1
l/host.py: Fix issue that update from non declared repositories
While updating some pool, I noticed that some packages from non listed
repo were also updated, this is caused by previously enabled repos on
host. This behavior makes the update unpredictable (unless if
all/undesired repos are disabled on host explicitly before the
update).
With this change all desired repos must be explicitly declared into
inventory file, non declared repos will not be used anymore.
To reproduce the issue, on an fresh host do the update with
[default]
repositories = ["xcp-ng-base","xcp-ng-testing", "xcp-ng-candidates"]
[hosts."$host"]
Then:
ssh root@$host yum-config-manager --enable "xcp-ng-ci"
And run same update again: ci packages will be pulled while not
desired in the inventory file.
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>1 parent 7361a37 commit 6f680f1
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
0 commit comments