[bug-notifications] [pkgutil 0004693]: multiple occurences of use_gpg lead to multiple checks

Mantis Bug Tracker noreply at opencsw.org
Mon Feb 21 18:48:52 CET 2011


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4693 
====================================================================== 
Reported By:                flod
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   4693
Category:                   regular use
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2011-02-20 04:16 CET
Last Modified:              2011-02-21 18:48 CET
====================================================================== 
Summary:                    multiple occurences of use_gpg lead to multiple
checks
Description: 
With the update to CSWpkgutil 2.3,REV=2011.02.12 the behavior somehow
changed.
I always saw two gpg blocks on one machine:
pkgutil -c
Checking integrity of
/var/opt/csw/pkgutil/catalog.csw.informatik.uni-erlangen.de_csw_current_i386_5.10
with gpg.
gpg: Unterschrift vom 17. Februar 2011 18:27:53 MET mittels DSA-Schlüssel
ID E12E9D2F
gpg: Korrekte Unterschrift von "CSW Distribution Manager
<dm at opencsw.org>"
Checking integrity of
/var/opt/csw/pkgutil/catalog.csw.informatik.uni-erlangen.de_csw_current_i386_5.10
with gpg.
gpg: Unterschrift vom 17. Februar 2011 18:27:53 MET mittels DSA-Schlüssel
ID E12E9D2F
gpg: Korrekte Unterschrift von "CSW Distribution Manager
<dm at opencsw.org>"

It looks like there are two places for config files:
/etc/opt/csw/pkgutil.conf
/opt/csw/etc/pkgutil.conf

at the host both contained the configuration:
use_gpg=true
use_md5=true

I removed /etc/opt/csw/pkgutil.conf and the output is back to one block.

Nevertheless that was a somehow unexpected behaviour.
====================================================================== 

---------------------------------------------------------------------- 
 (0008819) bonivart (manager) - 2011-02-21 18:48
 https://www.opencsw.org/mantis/view.php?id=4693#c8819 
---------------------------------------------------------------------- 
The problem is not that you have use_gpg twice, it's that you have the same
mirror twice. Usually options in /etc override those in /opt to allow for
local modifications but the mirror option is special to allow for multiple
mirrors. You declared the same mirror twice and they get checked twice.
This has not changed in a while, I just tested it with 1.9 and the same
thing happens there.

I guess pkgutil should be smart enough to not register the same mirror
more than once. I'll introduce some logic for that. Thanks for reporting
it. For now you can just choose where to declare the mirror instead of
doing it in both files. The general idea is that global, perhaps read-only,
configurations are in /opt/csw/etc/pkgutil.conf and your local changes are
in /etc/opt/csw/pkgutil.conf. If you have full control over the machine you
edit /etc/opt/csw/pkgutil.conf and leave /opt/csw/etc/pkgutil.conf as it
is.



More information about the bug-notifications mailing list