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:
parent
87ac68a8e1
commit
e68c6452ad
@ -161,8 +161,11 @@ mkdir -p src/github.com/projectatomic
|
|||||||
ln -s ../../../ src/github.com/projectatomic/skopeo
|
ln -s ../../../ src/github.com/projectatomic/skopeo
|
||||||
|
|
||||||
mkdir -p vendor/src
|
mkdir -p vendor/src
|
||||||
mv vendor/github.com vendor/src/.
|
for v in github.com golang.org; do
|
||||||
mv vendor/golang.org vendor/src/.
|
if test -d vendor/${v}; then
|
||||||
|
mv vendor/${v} vendor/src/
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
%if ! 0%{?with_bundled}
|
%if ! 0%{?with_bundled}
|
||||||
rm -rf vendor/
|
rm -rf vendor/
|
||||||
|
Loading…
Reference in New Issue
Block a user