Merge "autohelp: use the same extension for configs"

This commit is contained in:
Jenkins 2015-10-30 10:05:52 +00:00 committed by Gerrit Code Review
commit 38d47fbc46
3 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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