Fix ERROR(1419) Bad path '#cert-manager-helm' in file 'centos_pkg_dirs'

Comment lines begin with '#' in 'centos_pkg_dirs' are not ignored
by scripts build-srpms-parallel and build-srpms-serial

Closes-Bug: 1905350

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Signed-off-by: hbai <haiqing.bai@windriver.com>
Change-Id: I93affc9d064bad0107f73a136271fb2c7b73c738
This commit is contained in:
hbai 2020-11-24 11:51:08 +08:00 committed by Haiqing Bai
parent 365f8cdce1
commit 26173e692e
2 changed files with 2 additions and 2 deletions

View File

@ -1374,7 +1374,7 @@ for GIT_ROOT in $GIT_LIST; do
continue
fi
for p in $(cat $GIT_ROOT/$PKG_DIRS_FILE 2>> /dev/null); do
for p in $(sed 's/#.*//' $GIT_ROOT/$PKG_DIRS_FILE 2>> /dev/null); do
if [ $STOP_SCHEDULING -eq 1 ]; then
break;
fi

View File

@ -1238,7 +1238,7 @@ for GIT_ROOT in $GIT_LIST; do
continue
fi
for p in $(cat $GIT_ROOT/$PKG_DIRS_FILE 2>> /dev/null); do
for p in $(sed 's/#.*//' $GIT_ROOT/$PKG_DIRS_FILE 2>> /dev/null); do
src_dir="$GIT_ROOT/$p"
if [ -d $src_dir ]; then
if [ -d $src_dir/${DISTRO} ]; then