OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004775 [alternatives] regular use major always 2011-05-25 16:44 2011-05-25 21:22
Reporter jcraig View Status public  
Assigned To
Priority normal Resolution unable to reproduce  
Status closed  
Summary 0004775: MANUALDIR not set correctly in alternatives script
Description Set to:

MANUALDIR=/etc/opt/etc/alternatives #manual override location

believe it should be:


MANUALDIR=/etc/opt/csw/etc/alternatives #manual override location


Further, this directory doesn't appear to be created my the installation of CSWalternatives so I would further suggest changing the lines in function set_manual_prio to create if necessary. While your at it you may wish to protect the rm from throwing an error if it tries to remove a non-existent check file:
        $DEBUG found match for $1: $check
        if [ ! -d $MANUALDIR ]; then
                mkdir -p $MANUALDIR
        fi
        if [ -e $MANUALDIR/$1 ]; then
                rm -f $MANUALDIR/$1
        fi
        ln -s $check $MANUALDIR/$1

        set_alternative $1

}


Thanks,

Jon


Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0009077)
phil (reporter)
2011-05-25 21:22

Hmm. Actually, the path in the copy in the source tree, is

MANUALDIR=/etc/opt/csw/alternatives #manual override location

This is more correct than
MANUALDIR=/etc/opt/csw/etc/alternatives

The former, is also what appears in the package that is our current release of alternatives: alternatives-1.1,REV=2010.10.02-SunOS5.9-all-CSW.pkg.gz

so, closing this bug as not relevant.
But thank you for taking the time to file something.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker