Changeset 24350


Ignore:
Timestamp:
2010-12-08T17:08:14+01:00 (7 years ago)
Author:
mb
Message:

deptest: Also accept stamps that are broken links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/deptest.sh

    r24277 r24350  
    7676} 
    7777 
     78stamp_exists() # $1=stamp 
     79{ 
     80        [ -e "$1" -o -L "$1" ] 
     81} 
     82 
    7883test_package() # $1=pkgname 
    7984{ 
     
    8994        local STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg" 
    9095        rm -f "$STAMP_FAILED" 
    91         [ -e "$STAMP_SUCCESS" -a $force -eq 0 ] && return 
     96        stamp_exists "$STAMP_SUCCESS" && [ $force -eq 0 ] && return 
    9297        rm -f "$STAMP_SUCCESS" 
    9398        [ -n "$SELECTED" ] || { 
     
    95100                return 
    96101        } 
    97         [ -e "$STAMP_BLACKLIST" -a $force -eq 0 ] && { 
     102        stamp_exists "$STAMP_BLACKLIST" && [ $force -eq 0 ] && { 
    98103                echo "Package $pkg is blacklisted" 
    99104                return 
Note: See TracChangeset for help on using the changeset viewer.