summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-12 14:52:56 +0100
committerThomas Haller <thaller@redhat.com>2021-01-12 14:53:00 +0100
commitd26fa1cd52f7e1e9d49cebc493ca4631c10bcdeb (patch)
treebe5d974fdc29c8b6c68d9f04f8ec7ded90d8a065
parent1277e4c8827edb6995e5b59e410a43364afdb887 (diff)
downloadNetworkManager-d26fa1cd52f7e1e9d49cebc493ca4631c10bcdeb.tar.gz
contrib: fix "contrib/scripts/nm-copr-build.sh" script
-rwxr-xr-xcontrib/scripts/nm-copr-build.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/scripts/nm-copr-build.sh b/contrib/scripts/nm-copr-build.sh
index 78379a94f4..84c483a199 100755
--- a/contrib/scripts/nm-copr-build.sh
+++ b/contrib/scripts/nm-copr-build.sh
@@ -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