Changeset 2221

Show
Ignore:
Timestamp:
04/25/08 00:08:31 (2 weeks ago)
Author:
anarcat
Message:

properly parse the applied patch version number

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-mailman/trunk/debian/postinst

    r2216 r2221  
    3939    PATCH_MARKER="/usr/share/alternc-mailman/patches/mailman-true-virtual.applied" 
    4040    if [ -h $PATCH_MARKER ]; then 
    41         PATCH_VERSION=`readlink $PATCH_MARKER | sed -e s/^.*-//
     41        PATCH_VERSION=`readlink $PATCH_MARKER | sed -e 's/^.*-//;s/\.patch//'
    4242        echo "mailman patch detected, version $PATCH_VERSION" 
    4343        if [ "$PATCH_VERSION" = "$MAILMAN_VERSION" ]; then