git: DragonFly_RELEASE_3_6 rcrun(8): Properly handle scripts that provide more than one keyword.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Feb 16 11:57:57 PST 2014


commit 992fb96cb5ea1ceeca926aed1a9a7dad05085dd8
Author: Sascha Wildner <saw at online.de>
Date:   Fri Feb 14 22:15:14 2014 +0100

    rcrun(8): Properly handle scripts that provide more than one keyword.
    
    The loop that checks if all dependencies of the target are running
    didn't take into account that there could be more than one PROVIDE
    keyword in one script. It treated all PROVIDEs which were not named
    like the target as not yet running dependencies and failed.
    
    To fix, loop through the PROVIDEs twice, the first time to skip all
    the PROVIDEs of the script if the target is one of them.
    
    All this is due to the output of "rcorder -o ..." having the script
    that provides the target which we want to run as its last element,
    so document that with a comment.
    
    Reported-by: joris

Summary of changes:
 sbin/rcrun/rcrun.sh | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/992fb96cb5ea1ceeca926aed1a9a7dad05085dd8


-- 
DragonFly BSD source repository



More information about the Commits mailing list