Re: yum-versionlock: needs better output
Gerry Reno <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Seth Vidal wrote: > > > On Fri, 20 Mar 2009, Gerry Reno wrote: > >> Right now when I run yum with the yum-versionlock installed and a >> package version in /etc/yum/pluginconf.d/versionlock.list I get: >> >> # yum update bzip2 >> Loading "fastestmirror" plugin >> Loading "versionlock" plugin >> Loading mirror speeds from cached hostfile >> * fedora: archive.fedoraproject.org >> * updates: archive.fedoraproject.org >> Reading version lock configuration >> Setting up Update Process >> Could not find update match for bzip2 >> No Packages marked for Update >> >> >> But nowhere does it tell me that versionlock is preventing the update >> of bzip2. Only by running: >> yum list bzip2 >> >> can I see that there is an update. >> >> What we need is for yum-versionlock to report that the update is not >> taking place because versionlock is preventing it. > > If you bump the debug level to 5 (yum -d 5) > > does this show up: > > Excluding package <name> due to version lock > > -sv > > _______________________________________________ > Yum mailing list > [email protected] > http://lists.baseurl.org/mailman/listinfo/yum > # yum list bzip2 Loading "fastestmirror" plugin Loading "versionlock" plugin Loading mirror speeds from cached hostfile * fedora: archive.fedoraproject.org * updates: archive.fedoraproject.org Reading version lock configuration Installed Packages bzip2.i386 1.0.4-10.fc7 installed Here's what I get with: # yum -d 5 update bzip2 Loading "fastestmirror" plugin Loading "versionlock" plugin Running "init" handler for "fastestmirror" plugin Yum Version: 3.2.8 COMMAND: yum -d 5 update bzip2 Installroot: / Ext Commands: bzip2 Reading Local RPMDB Setting up Package Sacks Running "postreposetup" handler for "fastestmirror" plugin Loading mirror speeds from cached hostfile * fedora: archive.fedoraproject.org * updates: archive.fedoraproject.org Running "exclude" handler for "versionlock" plugin Reading version lock configuration Excluding package bzip2 - 1.0.4-10.fc7.i386 due to version lock Excluding package bzip2 - 1.0.4-11.fc7.i386 due to version lock Setting up Update Process Building updates object Could not find update match for bzip2 No Packages marked for Update So it shows both the 'installed' and 'available' packages as excluded. Maybe it could show something like this which gives us a little more context: ... Installed package bzip2 - 1.0.4-10.fc7.i386 Excluding package bzip2 - 1.0.4-11.fc7.i386 due to version lock ... And this type of info is exactly what we need. Can these two lines be made available in the future without the -d flag? Regards, Gerry