From 460d8d80ca73b3142af03fbc4a67bf630101d204 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Fri, 12 Aug 2016 16:50:10 -0700 Subject: [PATCH] release-rpm: fix bad destination paths for rpms Signed-off-by: Tibor Vass (cherry picked from commit e1c7ad871f6fd41a7682cf7effb02838ab679ae3) Signed-off-by: Tibor Vass --- hack/make/release-rpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/make/release-rpm b/hack/make/release-rpm index 7f9ee9feb9..5c109d0745 100755 --- a/hack/make/release-rpm +++ b/hack/make/release-rpm @@ -33,8 +33,9 @@ fi for dir in bundles/$VERSION/build-rpm/*/; do version="$(basename "$dir")" suite="${version##*-}" + distro="${version%-*}" - REPO=$YUMDIR/$release/$suite + REPO=$YUMDIR/$release/$distro # if the directory does not exist, initialize the yum repo if [[ ! -d $REPO/$suite/Packages ]]; then