release-rpm: fix bad destination paths for rpms

Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: e1c7ad871f6fd41a7682cf7effb02838ab679ae3
Component: engine
This commit is contained in:
Tibor Vass
2016-08-12 16:51:12 -07:00
parent cde4831d1f
commit a8ef6a6a87
+2 -1
View File
@@ -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