Changeset 1129 for obs/obs-service-dsc_filelist
- Timestamp:
- Dec 19, 2012, 7:02:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist
r1128 r1129 110 110 # update the file list in the description file 111 111 for FILE_DSC in $FILES_DSC; do 112 112 [ -e $FILE_DSC ] || continue 113 113 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 120 121 printf "\n" 121 122 done 122 123 123 124 exit 0 124 125
Note:
See TracChangeset
for help on using the changeset viewer.