Changeset 693 for locker/update-system


Ignore:
Timestamp:
Mar 16, 2008, 6:05:03 AM (16 years ago)
Author:
price
Message:
Don't run md5sum on an empty check file.

It dies with an error if you do.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/update-system/bin/build-update

    r692 r693  
    127127[ "$found" = "yes" ] || die "error: Correct version not found."
    128128xargs -n1 test ! -e <"$patchdir/oldfiles.absent" || die "error: Conflicting files exist."
    129 md5sum -c "$patchdir/check.md5" || die "error: MD5 check failed."
     129[ -s "$patchdir/check.md5" ] && (md5sum -c "$patchdir/check.md5" || die "error: MD5 check failed.")
    130130patch -stN --dry-run --no-backup-if-mismatch -p2 <"$patchdir/update.diff" || die "error: Patch dry run failed."
    131131
Note: See TracChangeset for help on using the changeset viewer.