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

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Feb 14 13:15:55 PST 2014


commit 383f7785efcb01d31175ccda4e0a646271fa8544
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/383f7785efcb01d31175ccda4e0a646271fa8544


-- 
DragonFly BSD source repository



More information about the Commits mailing list