Changeset 962 for rpmbuild-bot


Ignore:
Timestamp:
Feb 8, 2017, 1:40:28 PM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Accept simple Enter prress before showing a .spec diff.

File:
1 edited

Legend:

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

    r959 r962  
    669669  $commit_msg
    670670The repository will be updated now and then you will get a diff for careful
    671 inspection. Type YES to continue."
     671inspection. Press Enter to continue."
    672672
    673673  local answer=
    674674  read answer
    675   if [ "$answer" = "YES" ] ; then
    676     local pager=`which less`
    677     if [ ! -x "$pager" ] ; then
    678       pager="more"
    679       # OS/2 more doesn't understand LF, feed it through sed.
    680       [ -x `which sed` ] && pager="sed -e '' | $pager"
    681     fi
    682     run svn up "$spec_dir"
    683     echo
    684     svn diff $commit_items | "$pager"
    685     echo "
     675  local pager=`which less`
     676  if [ ! -x "$pager" ] ; then
     677    pager="more"
     678    # OS/2 more doesn't understand LF, feed it through sed.
     679    [ -x `which sed` ] && pager="sed -e '' | $pager"
     680  fi
     681  run svn up "$spec_dir"
     682  echo
     683  svn diff $commit_items | "$pager"
     684  echo "
    686685Type YES if the diff is okay to be committed."
    687     read answer
    688   fi
     686  read answer
    689687
    690688  [ "$answer" = "YES" ] || die "Your answer is not YES, upload is aborted."
Note: See TracChangeset for help on using the changeset viewer.