autohelp: use the same extension for configs
Use the .txt extension for all configuration files used by the autohelp scripts. Change-Id: I1c8904f977b40dbf7f60d150b3047219c96beb15
This commit is contained in:
parent
9db6200de5
commit
54a6522345
|
@ -75,10 +75,10 @@ get_project() {
|
|||
fi
|
||||
git clone $git_url/$project $SOURCESDIR/$project
|
||||
|
||||
if [ -e extra_repos/$project-$RELEASE ]; then
|
||||
if [ -e extra_repos/$project-$RELEASE.txt ]; then
|
||||
while read extra; do
|
||||
git clone $git_url/$extra $SOURCESDIR/$extra
|
||||
done < extra_repos/$project-$RELEASE
|
||||
done < extra_repos/$project-$RELEASE.txt
|
||||
fi
|
||||
|
||||
else
|
||||
|
@ -86,10 +86,10 @@ get_project() {
|
|||
(cd $SOURCESDIR/$project && git pull)
|
||||
fi
|
||||
|
||||
if [ -e extra_repos/$project-$RELEASE ]; then
|
||||
if [ -e extra_repos/$project-$RELEASE.txt ]; then
|
||||
while read extra; do
|
||||
(cd $SOURCESDIR/$extra && git pull)
|
||||
done < extra_repos/$project-$RELEASE
|
||||
done < extra_repos/$project-$RELEASE.txt
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ if [ "$FAST" -eq 0 ] ; then
|
|||
pip install -rrequirements.txt -rtest-requirements.txt
|
||||
python setup.py install
|
||||
|
||||
if [ -e extra_repos/$project-$RELEASE ]; then
|
||||
if [ -e extra_repos/$project-$RELEASE.txt ]; then
|
||||
while read extra; do
|
||||
(
|
||||
cd $SOURCESDIR/$extra
|
||||
|
@ -188,7 +188,7 @@ if [ "$FAST" -eq 0 ] ; then
|
|||
-rtest-requirements.txt
|
||||
python setup.py install
|
||||
)
|
||||
done < extra_repos/$project-$RELEASE
|
||||
done < extra_repos/$project-$RELEASE.txt
|
||||
fi
|
||||
)
|
||||
done
|
||||
|
@ -201,7 +201,7 @@ for project in $PROJECTS; do
|
|||
break
|
||||
fi
|
||||
|
||||
if [ -e extra_repos/$project-$RELEASE ]; then
|
||||
if [ -e extra_repos/$project-$RELEASE.txt ]; then
|
||||
extra_flags=
|
||||
while read extra; do
|
||||
package=$(echo $extra | tr - _)
|
||||
|
@ -218,7 +218,7 @@ for project in $PROJECTS; do
|
|||
package="neutron"
|
||||
fi
|
||||
extra_flags="$extra_flags -i $SOURCESDIR/$extra/$package"
|
||||
done < extra_repos/$project-$RELEASE
|
||||
done < extra_repos/$project-$RELEASE.txt
|
||||
fi
|
||||
|
||||
cd $MANUALSREPO/tools/autogenerate-config-flagmappings
|
||||
|
|
|
@ -61,7 +61,7 @@ def _get_packages(project, branch):
|
|||
release = branch if '/' not in branch else branch.split('/')[1]
|
||||
packages = [project]
|
||||
try:
|
||||
with open('extra_repos/%s-%s' % (project, release)) as f:
|
||||
with open('extra_repos/%s-%s.txt' % (project, release)) as f:
|
||||
packages.extend([p.strip() for p in f])
|
||||
except IOError:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue