Changeset 839 for rpmbuild-bot


Ignore:
Timestamp:
Aug 24, 2016, 9:46:12 PM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Fix regerssion in r833.

Would give wrong arch list for spec files with dashes in names.

Location:
rpmbuild-bot
Files:
2 edited

Legend:

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

    r833 r839  
    6060
    6161# Overrides of RPM arch list for specific packages.
     62# Note that dash symbols in package names should be replaced with underscores
     63# in the variables below (e.g. use RPMBUILD_BOT_ARCH_LIST_foo_bar for the
     64# foo-bar package).
    6265RPMBUILD_BOT_ARCH_LIST_libc="i686" # Binary build -> no other archs.
    6366
  • rpmbuild-bot/rpmbuild-bot.sh

    r833 r839  
    333333build_cmd()
    334334{
    335   eval local arch_list="\${RPMBUILD_BOT_ARCH_LIST_${spec_name}}"
     335  local spec_name_=`echo "${spec_name}" | tr - _`
     336  eval local arch_list="\${RPMBUILD_BOT_ARCH_LIST_${spec_name_}}"
    336337  [ -z "$arch_list" ] && arch_list="${RPMBUILD_BOT_ARCH_LIST}"
    337338
Note: See TracChangeset for help on using the changeset viewer.