Explorar o código

release-rpm: fix bad destination paths for rpms

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass %!s(int64=9) %!d(string=hai) anos
pai
achega
e1c7ad871f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      hack/make/release-rpm

+ 2 - 1
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