diff --git a/installonlyn.py b/installonlyn.py index fb63325..1b7e06b 100644 --- a/installonlyn.py +++ b/installonlyn.py @@ -51,7 +51,7 @@ def postresolve_hook(conduit): toremove = [] for instpkg in conf.installonlypkgs: for m in mems: - if m.name == instpkg: + if m.name == instpkg and m.ts_state in ('i', 'u'): installed = rpmdb.returnTupleByKeyword(name=instpkg) if len(installed) >= num_tokeep - 1: # since we're adding one numleft = len(installed) - num_tokeep + 1 diff --git a/yum.spec b/yum.spec index 8f77e01..3f6a234 100644 --- a/yum.spec +++ b/yum.spec @@ -3,7 +3,7 @@ Summary: RPM installer/updater Name: yum Version: 2.4.0 -Release: 9 +Release: 10 License: GPL Group: System Environment/Base Source0: http://linux.duke.edu/projects/yum/download/2.4/yum-%{version}.tar.gz @@ -95,11 +95,16 @@ exit 0 %{_mandir}/man*/* # plugin stuff %dir %{_sysconfdir}/yum/pluginconf.d -%config %{_sysconfdir}/yum/pluginconf.d/* +%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/* %dir /usr/lib/yum-plugins /usr/lib/yum-plugins/* %changelog +* Tue Nov 8 2005 Jeremy Katz - 2.4.0-10 +- fix problem in installonlyn that caillon hit where removing kernels + would trigger instead of only happening on update/install of kernels +- make plugin config files noreplace + * Mon Nov 7 2005 Jeremy Katz - 2.4.0-9 - enable plugins by default - add installyonlyn plugin so that we only keep two kernels around by default