Expand the ignore cases

* perestroika/build-deb.sh & perestroika/build-rpm.sh
   - Add variable "ignore_list" and use it for
     expand the ignore cases
 * Add horizon-vendor-theme to ignores

Change-Id: I1c4f81e6a6f404ec71fee38ed9fd1d483a38cb22
This commit is contained in:
dtrishkin 2016-04-01 17:44:47 +03:00
parent 3fc822845d
commit 786564b9f6
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,8 @@ main () {
done
# Prepare source tarball
pushd $_srcpath &>/dev/null
if [ "$PACKAGENAME" == "rally" ]; then
local ignore_list="rally horizon-vendor-theme"
if [ $(echo $ignore_list | grep -Eo "(^| )$PACKAGENAME( |$)") ]; then
# Do not perform `setup.py sdist` for rally packages
tar -czf ${BUILDDIR}/$TAR_NAME $EXCLUDES .
else

View File

@ -59,7 +59,8 @@ This package provides the %{-n*} kernel modules
sed -i "s|Source0:.*$|Source0: ${TAR_NAME}|" $specfile
# Prepare source tarball
pushd $_srcpath &>/dev/null
if [ "$PACKAGENAME" == "openstack-macros" ]; then
local ignore_list="openstack-macros horizon-vendor-theme"
if [ $(echo $ignore_list | grep -Eo "(^| )$PACKAGENAME( |$)") ]; then
# Do not perform `setup.py sdist` for openstack-macros package
tar -czf ${BUILDDIR}/$TAR_NAME $EXCLUDES .
else