Changeset 15069


Ignore:
Timestamp:
2009-03-29T10:46:04+02:00 (7 years ago)
Author:
juhosg
Message:

[scripts] ipkg-make-index: remove leading './' from the Filename field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/ipkg-make-index.sh

    r5649 r15069  
    1616        md5sum=$(md5sum $pkg | awk '{print $1}') 
    1717        # Take pains to make variable value sed-safe 
    18         sed_safe_pkg=`echo $pkg | sed -e 's/\\//\\\\\\//g'` 
     18        sed_safe_pkg=`echo $pkg | sed -e 's/^\.\///g' -e 's/\\//\\\\\\//g'` 
    1919        tar -xzOf $pkg ./control.tar.gz | tar xzOf - ./control | sed -e "s/^Description:/Filename: $sed_safe_pkg\\ 
    2020Size: $file_size\\ 
Note: See TracChangeset for help on using the changeset viewer.