Clark Boylan 788224cfe0 Don't remove packages that are requested to be installed
Recently the source-repositories element was updated [0] to set git as a
build-only dep. This is fine if you don't request to install git
elsewhere as a regular package install [1]. If you mix the two then git
gets uninstalled when you expect it to be installed.

Address this by checking if a package is already requested to be
installed when we find a removal or build-only request. Similarly remove
a package from the uninstall list if we ask for it to be installed
normally. This means that explicit installs override any cleanup
actions.

[0] https://review.opendev.org/#/c/745678/1/diskimage_builder/elements/source-repositories/package-installs.yaml
[1] https://opendev.org/openstack/project-config/src/branch/master/nodepool/elements/infra-package-needs/package-installs.yaml#L22

Change-Id: Idc1aa86f10cddcd4549066d8ea1d6df6fd906bac
2020-08-21 08:30:22 -07:00
..
2020-04-02 10:11:35 +11:00
2020-02-05 10:19:12 +01:00
2020-02-19 10:44:56 +01:00
2017-04-05 13:11:22 +10:00
2019-11-07 17:32:05 -03:00
2017-02-02 11:20:00 +11:00
2017-01-31 14:14:19 +11:00
2020-08-17 19:40:02 +10:00
2020-08-17 19:40:02 +10:00
2017-05-19 12:43:36 -07:00
2018-02-28 06:31:34 -06:00
2019-12-18 11:42:02 -05:00
2017-05-19 12:43:36 -07:00
2017-05-19 12:43:36 -07:00
2019-05-29 12:07:44 +00:00
2017-02-02 20:36:23 +11:00
2020-08-17 19:40:02 +10:00
2020-08-18 08:12:17 +00:00
2017-02-02 11:20:00 +11:00
2017-03-14 14:49:49 +11:00
2018-02-23 10:04:40 +11:00
2020-08-07 10:34:03 +10:00
2018-11-28 11:04:50 +11:00