[bug-notifications] [pkgutil 0003831]: Saving of admin file still doesn't work correctly

Mantis Bug Tracker noreply at opencsw.org
Fri Aug 14 19:25:37 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3831 
====================================================================== 
Reported By:                dam
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   3831
Category:                   regular use
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-08-07 12:48 CEST
Last Modified:              2009-08-14 19:25 CEST
====================================================================== 
Summary:                    Saving of admin file still doesn't work correctly
Description: 
On an update with
  pkgutil -U -u -y
I got after some package updates the error

...
Installation of <CSWpmipcshrlite> was successful.
Removing old version of CSWpmiozlib
pkgrm: ERROR: unable to open admin file </var/opt/csw/pkgutil/admin.run>:
No such file or directory

Removal of <CSWpmiozlib> failed (internal error).
No changes were made to the system.
Installing CSWpmiozlib-1.10,REV=2009.08.06
pkgadd: ERROR: unable to open admin file </var/opt/csw/pkgutil/admin.run>:
No such file or directory
Removing old version of CSWpmgd

The error was with this version:

root at build9s :/root > pkginfo -x CSWpkgutil
CSWpkgutil      pkgutil - Installs Solaris packages easily
                (sparc) 1.6.1,REV=2009.06.05


====================================================================== 

---------------------------------------------------------------------- 
 (0006575) bonivart (manager) - 2009-08-14 19:25
 http://www.opencsw.org/mantis/view.php?id=3831#c6575 
---------------------------------------------------------------------- 
I just noticed that pkgutil leaves the admin.run file lots of times which
previously was no problem since it was just overwritten but now when I have
the "multiple instance"-protection it's a problem. One thing is to clean up
better before exiting but an unexpected (e.g. user aborted) exit can always
happen. I have therefor also added checks for other pkgutil processes when
an admin.run file is found, if only one process is running the file is
considered stale and removed which should work in most cases. This is in
r80.



More information about the bug-notifications mailing list