Alex Wood wrote:
The yumcmd.check_update method returns the str value of an yum package
object. In the latest version of yum, the str method looks like
out = '%s-%s-%s.%s' % (self.name, self.version, self.release, self.arch)
The result is something like "foo-1.0-2.noarch". However, the update
method only takes an rpm name. In the example, the name is simply "foo."
Running the command yumcmd.update("foo-1.0-2.noarch") won't do
anything because no package has that *name*. Only
yumcmd.update("foo") will update the package.
I've changed the update method to pass in a pattern instead of a name.
Yum is much more flexible when dealing with patterns and will actually
update if you leave in the version, release, and architecture.
Merge'd and pushed. Thanks.
Adrian
_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list