Obsoletes: not working

"Brian J. Murrell" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On an EL6 machine, I've built a package "foo-bar" and it's intended to
replace any already installed "bar" package on any machines it's
installed on so I put an:

Obsoletes: bar

in foo-bar.spec and it seems to have been added to the resulting package:

# rpm -q --obsoletes -p foo-bar-1.1-1.el6.noarch.rpm
bar
# rpm -ivh foo-bar-1.1-1.el6.noarch.rpm
Preparing...          ########################################### [100%]
   1:foo-bar          ########################################### [100%]
# rpm -q bar
bar-1.0-1.el6.noarch

So why didn't the "Obsoletes: bar" remove "bar"?

Cheers,
b.

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+9j/AACgkQl3EQlGLyuXDu2gCfb+ZJgZGzB61+PFxdJSAiz2lk
hBcAn20V9m4qxWB6vYs+0jXti7jqWov+
=9GPW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.