contrib: fix "contrib/scripts/nm-copr-build.sh" script

This commit is contained in:
Thomas Haller 2021-01-12 14:52:56 +01:00
parent 1277e4c882
commit d26fa1cd52
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -24,7 +24,7 @@ pushd NetworkManager
git init .
git remote add origin https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
git remote add github https://github.com/NetworkManager/NetworkManager
git remote add --no-tags github https://github.com/NetworkManager/NetworkManager
get_nm_git_bundle() {
# try to fetch the refs from nm-git-bundle.
@ -40,7 +40,7 @@ get_nm_git_bundle() {
fi
mkdir nm-git-bundle
pushd nm-git-bundle
curl "$NM_GIT_BUNDLE" \
time curl "$NM_GIT_BUNDLE" \
| rpm2cpio - \
| cpio -idmv
popd
@ -62,4 +62,5 @@ git checkout -b tmp "$GIT_SHA"
./contrib/fedora/rpm/build_clean.sh -g -S -w test $DEBUG -s copr
popd
mv ./NetworkManager/contrib/fedora/rpm/latest/SRPMS/* .
mv ./NetworkManager/contrib/fedora/rpm/latest/{SOURCES,SPECS}/* .
rm -rf ./NetworkManager