[bug-notifications] [cswclassutils 0003873]: Package removal cswcpsampleconf failure mode

Mantis Bug Tracker noreply at opencsw.org
Wed Oct 28 16:56:24 CET 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3873 
====================================================================== 
Reported By:                maciej
Assigned To:                
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3873
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-08-31 18:26 CEST
Last Modified:              2009-10-28 16:56 CET
====================================================================== 
Summary:                    Package removal cswcpsampleconf failure mode
Description: 
The configuration removal script assumes that the *.CSW configuration file
is there on the disk. The file might be gone if there was a previous,
unsuccessful attempt of package removal, which failed at the postremove
stage. In this case, all the files are gone (foo.conf.CSW file is not
there), but the class script will be executed again at the next attempt to
remove the package. It's going to look for the .CSW file and fail.
====================================================================== 

---------------------------------------------------------------------- 
 (0006907) bonivart (manager) - 2009-10-28 16:56
 http://www.opencsw.org/mantis/view.php?id=3873#c6907 
---------------------------------------------------------------------- 
I have added -f to the rm commands. It's a dirty fix but it makes for a
successful exit of pkgrm in these cases. A nicer fix would be to properly
check for the existence of both files and act accordingly but I don't have
the time right now, I want to release a new version of cswclassutils
containing other stuff as well. I will keep this open so I (or Phil?) can
fix it better next time.




More information about the bug-notifications mailing list