On Wed, Aug 29, 2007 at 07:44:30AM -0400, Matthew Miller wrote:
> On Tue, Aug 28, 2007 at 08:47:38PM -0500, Michael E Brown wrote:
> > But if you are installing security updates only, arent you also using
> > some other cmdline options? Wouldn't your other plugins handling
> > security-only stuff ensure that only security updates are installed?
> 
> Maybe, but not necessarily.

Well, this is what I am trying to work out.

> > So, my goal is to make this as automatic and seamless for people. Making
> > people add a cmdline option for this doesnt really meet my goals. I
> > would be willing to add a cmdline option to disable this plugin, if
> > people think that would be helpful.
> 
> There's automatic and seamless, and then there's "unexpected side effect". :)

Sorry, I dont see anything unexpected here. This is automatic and
seamless and exactly what I intend. If you dont like it, "rpm -e
firmware-tools". (Although what I would consider would be some sort of
disable cmdline switch.)

What I am trying to achieve with firmware-tools is that your BIOS and
other firmware (RAID cards, network, etc) behave from an administration
point of view just like the rest of the software in your system. It
should be irrelevant if you have an RPM on your system matching your
BIOS. If yum sees an RPM available for your BIOS, it should be
installed.

What I would like to happen is for new BIOS and firmware packages to
behave just like any RPM installed on the system. If I put my code in
the preresolve hook, then the problem becomes that BIOS packages are
only ever bootstrapped if there happens to be another regular RPM
available for download.

Keep in mind that this behaviour is only invoked under three very
special circumstances, outlined in my earlier email (initial
firmware-tools install, new hardware added, brand-new package types made
available that were not previously).

The normal case would be where user has the system_bios RPM installed,
and yum will take care of it automatically without my plugin, handling
it just like any other RPM.
--
Michael


===========================================================================
===========================================================================
# yum upgrade
Loading "priorities" plugin
Loading "dellsysidplugin" plugin
Loading "changelog" plugin
Loading "tsflags" plugin
Loading "skip-broken" plugin
Loading "downloadonly" plugin
Loading "firmwaretools_bootstrap" plugin
Loading "fastestmirror" plugin
Loading "allowdowngrade" plugin
Loading "protectbase" plugin
Where: config_hook
Where: postconfig_hook
Where: init_hook
Setting up Upgrade Process
Where: prereposetup_hook
Where: postreposetup_hook
Loading mirror speeds from cached hostfile
dell-hardware-auto        100% |=========================| 1.9 kB    00:00     
livna                     100% |=========================| 2.1 kB    00:00     
dell-hardware-main        100% |=========================| 1.9 kB    00:00     
dell-software             100% |=========================| 1.9 kB    00:00     
primary.sqlite.bz2        100% |=========================|  13 kB    00:00     
fedora                    100% |=========================| 2.1 kB    00:00     
adobe-linux-i386          100% |=========================|  951 B    00:00     
fwupdate                  100% |=========================| 1.9 kB    00:00     
primary.sqlite.bz2        100% |=========================|  75 kB    00:00     
updates                   100% |=========================| 1.9 kB    00:00     
primary.sqlite.bz2        100% |=========================| 1.7 MB    00:10     
macromedia                100% |=========================| 1.9 kB    00:00     
0 packages excluded due to repository priority protections
Where: exclude_hook
0 packages excluded due to repository protections

##### The stuff from here down doesnt happen unless there are updates
##### available.

Resolving Dependencies
Where: preresolve_hook
--> Running transaction check
---> Package rpm-build.x86_64 0:4.4.2.1-1.fc7 set to be updated
---> Package popt.i386 0:1.10.2.1-1.fc7 set to be updated
---> Package popt.x86_64 0:1.10.2.1-1.fc7 set to be updated
---> Package elfutils-libelf.x86_64 0:0.129-1.fc7 set to be updated
---> Package rpmdevtools.noarch 0:6.1-0.1.fc7 set to be updated
---> Package rpm-python.x86_64 0:4.4.2.1-1.fc7 set to be updated
---> Package liboil.x86_64 0:0.3.12-9.fc7 set to be updated
---> Package elfutils-libelf.i386 0:0.129-1.fc7 set to be updated
---> Package perl-XML-Writer.noarch 0:0.603-2.fc7 set to be updated
---> Package elfutils-libs.x86_64 0:0.129-1.fc7 set to be updated
---> Package rpm.x86_64 0:4.4.2.1-1.fc7 set to be updated
---> Package rpm-libs.x86_64 0:4.4.2.1-1.fc7 set to be updated
---> Package elfutils.x86_64 0:0.129-1.fc7 set to be updated
--> Processing Dependency: fakeroot for package: rpmdevtools
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package fakeroot.x86_64 0:1.6.4-15.fc7 set to be updated
---> Package rpmdevtools.noarch 0:6.1-0.1.fc7 set to be updated
Where: postresolve_hook

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Updating:
 elfutils                x86_64     0.129-1.fc7      updates           191 k
 elfutils-libelf         x86_64     0.129-1.fc7      updates            48 k
 elfutils-libelf         i386       0.129-1.fc7      updates            54 k
 elfutils-libs           x86_64     0.129-1.fc7      updates           104 k
 liboil                  x86_64     0.3.12-9.fc7     updates           160 k
 perl-XML-Writer         noarch     0.603-2.fc7      updates            24 k
 popt                    i386       1.10.2.1-1.fc7   updates            70 k
 popt                    x86_64     1.10.2.1-1.fc7   updates            72 k
 rpm                     x86_64     4.4.2.1-1.fc7    updates           1.1 M
 rpm-build               x86_64     4.4.2.1-1.fc7    updates           623 k
 rpm-libs                x86_64     4.4.2.1-1.fc7    updates           920 k
 rpm-python              x86_64     4.4.2.1-1.fc7    updates            58 k
 rpmdevtools             noarch     6.1-0.1.fc7      updates            66 k
Installing for dependencies:
 fakeroot                x86_64     1.6.4-15.fc7     fedora             75 k

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update      13 Package(s)         
Remove       0 Package(s)         

Total download size: 3.5 M
Is this ok [y/N]: n
Exiting on user Command
Complete!
Where: close_hook
===========================================================================
===========================================================================
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to