On Tue, 28 Apr 2009, Ville Skyttä wrote:
Hello, I'd like yum to tell me if after a transaction there are any new leaf packages installed. New packages installed in a transaction are the obvious ones (and should maybe not be displayed at all but IMO that's a minor concern that can be taken care of if need be, perhaps with a config option), but the more interesting ones are new leaves after an update or update+install transaction. remove-with-leaves is similar but AFAIK it handles only erase transactions. So, I came up with the attached plugin. I don't feel too good about clearing cached rpmdb data in posttrans_hook but it seems necessary and the alternative I came up with (grabbing rpmdb data in close_hook instead of posttrans_hook and accessing rpmdb there through conduit._base.rpmdb) felt even worse. Is there a better way? Comments and improvements welcome. I'd like to see this eventually included in yum-utils.
in yum following 3.2.22 an: was added here self.rpmdb.dropCachedData() # drop out the rpm cache so we don't step on bad hdr indexes self.plugins.run('posttrans') in runTransaction() in YumBase. so I think what you want is already happening. -sv
_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum