Changeset 830 for rpmbuild-bot


Ignore:
Timestamp:
Jul 27, 2016, 9:16:54 PM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Support stat timestamps w/o fractional part (new coreutils).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rpmbuild-bot/rpmbuild-bot.sh

    r769 r830  
    287287    echo "Checking timestamp of $file..."
    288288    local act_ts=`stat -c '%Y' "$file"`
     289    # Drop fractional part of seconds reported by older coreutils
     290    ts="${ts%%.*}"
     291    act_ts="${act_ts%%.*}"
    289292    if [ "$ts" != "$act_ts" ] ; then
    290293      die "Recorded timestamp $ts doesn't match actual timestamp $act_ts for '$file'."
Note: See TracChangeset for help on using the changeset viewer.