Ignore:
Timestamp:
Feb 8, 2017, 10:23:32 AM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Store version number with dist mark for legacy packages.

This is to have a proper version field in generated legacy sub-packages.

File:
1 edited

Legend:

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

    r949 r959  
    366366    [ -z "$mask" ] && mask="*.dll"
    367367
     368    # add the dist suffix, if any, to ver (to make it consistent)
     369    ver="$ver$dist_mark"
     370
    368371    abi_list="$abi_list${abi_list:+ }$abi"
    369372
     
    371374    echo "Getting legacy runtime ($mask) for ABI '$abi'..."
    372375    for arch in ${legacy_arch:-${arch_list}} ; do
    373       eval local rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-$ver$dist_mark.$arch.rpm"
     376      eval local rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-$ver.$arch.rpm"
    374377      local tgt_dir="$src_dir/$spec_name-legacy/$abi/$arch"
    375378      # Check filenames and timestamps
     
    389392        find "$tgt_dir" -type f -printf '/%P\n' > "$tgt_dir.files.list"
    390393        # now try to locate the debuginfo package and extract *.dbg from it
    391         eval local debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debuginfo-$ver$dist_mark.$arch.rpm"
    392         [ ! -f "$debug_rpm" ] && eval debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debug-$ver$dist_mark.$arch.rpm"
     394        eval local debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debuginfo-$ver.$arch.rpm"
     395        [ ! -f "$debug_rpm" ] && eval debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debug-$ver.$arch.rpm"
    393396        if [ -f "$debug_rpm" ] ; then
    394397          echo "Found debug info package $debug_rpm, extracting..."
Note: See TracChangeset for help on using the changeset viewer.