Ignore:
Timestamp:
Dec 19, 2012, 7:02:47 PM (12 years ago)
Author:
joergs
Message:

better wildcsrd handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist

    r1128 r1129  
    110110# update the file list in the description file
    111111for FILE_DSC in $FILES_DSC; do
    112         [ -e $FILE_DSC ] || continue
     112    [ -e $FILE_DSC ] || continue
    113113    printf "$0: modifing file $FILE_DSC, adding "
    114         grep -q "^Files:" $FILE_DSC || echo "Files: " >> $FILE_DSC
    115         for filename in $FILES; do
    116         path=`ls -1 "$filename" || ls -1 "_service:*:$filename"`
    117         printf "${path##*:} "
    118                 printf ' %s %s %s\n' `md5 $path` `filesize $path` ${path##*:} >> $FILE_DSC
    119         done
     114    grep -q "^Files:" $FILE_DSC || echo "Files: " >> $FILE_DSC
     115    for filename in $FILES; do
     116        path=`ls -1 "$filename 2>/dev/null" || eval ls -1 "_service:*:$filename 2>/dev/null"`
     117        [ -e $path ] || continue
     118        printf "${path##*:} (${path})"
     119        printf ' %s %s %s\n' `md5 $path` `filesize $path` ${path##*:} >> $FILE_DSC
     120    done
    120121    printf "\n"
    121122done
    122123
    123124exit 0
    124 
    125 
Note: See TracChangeset for help on using the changeset viewer.