Changeset 1032 for rpmbuild-bot
- Timestamp:
- Feb 24, 2017, 11:42:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rpmbuild-bot/rpmbuild-bot.sh
r990 r1032 467 467 log_run "$log_base.$arch.log" rpmbuild.exe --target=$arch -bb "$spec_full" 468 468 print_elapsed start_time "Completed in \$e." 469 if ! grep - q "^Wrote: \+.*\.$arch\.rpm$" "$log_base.$arch.log" ; then470 if ! grep - q "^Wrote: \+.*\.noarch\.rpm$" "$log_base.$arch.log" ; then469 if ! grep -a -q "^Wrote: \+.*\.$arch\.rpm$" "$log_base.$arch.log" ; then 470 if ! grep -a -q "^Wrote: \+.*\.noarch\.rpm$" "$log_base.$arch.log" ; then 471 471 die "Target '$arch' did not produce any RPMs." 472 472 fi … … 484 484 485 485 # Find SRPM file name in the log. 486 local src_rpm=`grep "^Wrote: \+.*\.src\.rpm$" "$log_base.srpm.log" | sed -e "s#^Wrote: \+##g"`486 local src_rpm=`grep -a "^Wrote: \+.*\.src\.rpm$" "$log_base.srpm.log" | sed -e "s#^Wrote: \+##g"` 487 487 [ -n "$src_rpm" ] || die "Cannot find .src.rpm file name in '$log_base.srpm.log'." 488 488 … … 497 497 498 498 # Find all RPM packages for the base arch (note the quotes around `` - it's to preserve multi-line result). 499 local rpms="`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_base.$base_arch.log" | sed -e "s#^Wrote: \+##g"`"499 local rpms="`grep -a "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_base.$base_arch.log" | sed -e "s#^Wrote: \+##g"`" 500 500 [ -n "$rpms" ] || die "Cannot find .$base_arch.rpm/.noarch.rpm file names in '$log_base.base_arch.log'." 501 501 … … 535 535 if [ -z "$noarch_only" ] ; then 536 536 for arch in ${arch_list%${base_arch}} ; do 537 rpms="`grep "^Wrote: \+.*\.$arch\.rpm$" "$log_base.$arch.log" | sed -e "s#^Wrote: \+##g"`"537 rpms="`grep -a "^Wrote: \+.*\.$arch\.rpm$" "$log_base.$arch.log" | sed -e "s#^Wrote: \+##g"`" 538 538 [ -n "$rpms" ] || die "Cannot find .$arch.rpm file names in '$log_base.arch.log'." 539 539 for f in $rpms ; do … … 591 591 if [ "$command_arg" = "all" -o "$command_arg" = "pack" ] ; then 592 592 # Find all RPM packages for the base arch (note the quotes around `` - it's to preserve multi-line result). 593 local rpms="`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`"593 local rpms="`grep -a "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`" 594 594 if [ -n "$rpms" ] ; then 595 595 echo "Successfully generated the following RPMs:" … … 729 729 730 730 # Find all RPM packages for the base arch (note the quotes around `` - it's to preserve multi-line result). 731 local rpms="`grep "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`"731 local rpms="`grep -a "^Wrote: \+.*\.\($base_arch\.rpm\|noarch\.rpm\)$" "$log_file" | sed -e "s#^Wrote: \+##g"`" 732 732 if [ -n "$rpms" ] ; then 733 733 for f in $rpms; do
Note:
See TracChangeset
for help on using the changeset viewer.