Ignore:
Timestamp:
Apr 15, 2016, 4:20:30 PM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Fix another bad variable name error (in test/clean)

See also r728.

File:
1 edited

Legend:

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

    r739 r744  
    9292#   pack    Create the RPM packages (requires "prep", "build" and "install"
    9393#           to be executed before). Note that this step will also execute
    94 #           the %clean section so that a new "build" + "install" execution is
     94#           the %clean section so that a new "install" execution is
    9595#           necessary for "pack" to succeed.
    9696#
     
    383383  # Show the generated RPMs when appropriate.
    384384  if [ "$command_arg" = "all" -o "$command_arg" = "pack" ] ; then
    385     local rpms=`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`
     385    # Find all RPM packages for the base arch (note the quotes around `` - it's to preserve multi-line result).
     386    local rpms="`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`"
    386387    if [ -n "$rpms" ] ; then
    387388      echo "Successfully generated the following RPMs:"
     
    474475    [ -f "$log_file" ] || die "File '$test_log' is not found."
    475476
    476     local rpms=`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`
     477    # Find all RPM packages for the base arch (note the quotes around `` - it's to preserve multi-line result).
     478    local rpms="`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`"
    477479    if [ -n "$rpms" ] ; then
    478480      for f in $rpms; do
Note: See TracChangeset for help on using the changeset viewer.