[Yum-devel] install/update/erase cases
Ignacio Vazquez-Abrams
ivazquez at ivazquez.net
Mon Oct 24 15:56:37 UTC 2005
On Mon, 2005-10-24 at 11:08 -0400, seth vidal wrote:
> odd cases/questions:
>
> - if requesting install but same pkg is marked as erase then install
> or - should we remove the pkg marked as erase and mark the newer pkg
> as an
> update?
When would this happen other than in an Obsoletes action? Is it possible
to install a package that another package Obsoletes?
> - if requesting install/update but older pkg is marked to be installed.
> If pkgs are install-only - then install them
> If pkgs are not install-only then install/update the newest/best
> one
Depends on whether or not versions are given with the install. If there
is a version given then follow that logic. Otherwise just install the
older one.
> - if requesting install/update but newer pkg is marked to be installed
> If pkgs are install-only - then install them
> if pkgs are not install-only then install/update the newest/best
> one
Same as above but with newer.
> - if requesting update but package is an install then:
> mark the pkg as an install
> or
> don't do anything - return/raise an error.
> (arguably, earlier functions should have vetted this case and
> returned
> proper errors but it might make sense to let this function do the
> thinking
> for this)
Ignore silently. This matches rpm -F behavior.
> - if requesting erase - but package is marked to be installed/updated
> then:
> - raise an error about the problem
> - discard the erase request and emit log
> - silently discard the erase request
Raise an error. Desired behavior cannot be fulfilled.
> - if requesting install/update of two mutually obsoleting packages:
> - raise exception?
> - install the first one?
> - install the second one?
>
> - if requesting install/update of two conflicting packages:
> - raise exception?
> - install the first one?
> - install the second one?
Same as above.
--
Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>
http://fedora.ivazquez.net/
gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20051024/42d4aa91/attachment.pgp
More information about the Yum-devel
mailing list