Handle missing vendor dirs

I'm trying to build git master which apparently lost the golang.org
vendor, make that non-fatal.
This commit is contained in:
Colin Walters 2016-04-21 14:34:52 -04:00
parent 87ac68a8e1
commit e68c6452ad

View File

@ -161,8 +161,11 @@ mkdir -p src/github.com/projectatomic
ln -s ../../../ src/github.com/projectatomic/skopeo
mkdir -p vendor/src
mv vendor/github.com vendor/src/.
mv vendor/golang.org vendor/src/.
for v in github.com golang.org; do
if test -d vendor/${v}; then
mv vendor/${v} vendor/src/
fi
done
%if ! 0%{?with_bundled}
rm -rf vendor/