Merge "Clean up bindep invocation in cache-bindep element"

This commit is contained in:
Jenkins 2015-07-03 08:04:01 +00:00 committed by Gerrit Code Review
commit 88ced85975

View File

@ -32,10 +32,10 @@ for REPO in /opt/git/*/* ; do
done
# TODO(fungi) once https://review.openstack.org/195201 appears in a bindep
# release, replace the next four lines with:
# PACKAGELIST=`echo "$PACKAGES" | bindep -b -f -`
PACKAGESFILE=`tempfile`
# PACKAGELIST=`echo "$PACKAGES" | /usr/bindep-env/bin/bindep -b -f - || true`
PACKAGESFILE=`mktemp`
echo "$PACKAGES" > $PACKAGESFILE
PACKAGELIST=`bindep -b -f $PACKAGESFILE`
PACKAGELIST=`/usr/bindep-env/bin/bindep -b -f $PACKAGESFILE || true`
rm $PACKAGESFILE
if grep "^CentOS release 6" /etc/redhat-release ; then