Browse code

release-rpm: fix bad destination paths for rpms

Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2016/08/13 08:50:10
Showing 1 changed files
... ...
@@ -33,8 +33,9 @@ fi
33 33
 for dir in bundles/$VERSION/build-rpm/*/; do
34 34
 	version="$(basename "$dir")"
35 35
 	suite="${version##*-}"
36
+	distro="${version%-*}"
36 37
 
37
-	REPO=$YUMDIR/$release/$suite
38
+	REPO=$YUMDIR/$release/$distro
38 39
 
39 40
 	# if the directory does not exist, initialize the yum repo
40 41
 	if [[ ! -d $REPO/$suite/Packages ]]; then