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

Mantis Bug Tracker noreply at opencsw.org
Thu Aug 13 17:47:53 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-13 17:47 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


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

---------------------------------------------------------------------- 
 (0006571) bonivart (manager) - 2009-08-13 17:47
 http://www.opencsw.org/mantis/view.php?id=3831#c6571 
---------------------------------------------------------------------- 
For the options that might need the admin file I copy admin to admin.run
already, this is to make it work during an upgrade of itself, it's
admin.run that is used during pkgadd/pkgrm operations. I then remove
admin.run before pkgutil exits so I think just checking for its existence
may be enough to stop multiple instances from screwing up for each other.
Of course simple options like help, version, findfile, listfile and so on
are not affected.

I made the message include that a file (normally
/var/opt/csw/pkgutil/admin.run) was found where none should be so if the
user knows there are no other instances (something was left from an aborted
run?) it can easily be removed.

Is that good enough for now?

What would the "multiple concurrent downloads of the same file" be used
for?




More information about the bug-notifications mailing list