From 06e039b18a1f58d4d7efe491a2c7fa8ec3eb74c9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 14 Feb 2024 17:41:04 +0100 Subject: [PATCH] contrib: pass "--noclean" to rpmbuild in "makerepo.sh" Recent rpmbuild will delete the source directory on successful build. With `makerepo.sh` that is bad, because we want that directory with the git history. Pass "--noclean" to avoid that. --- contrib/fedora/utils/makerepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fedora/utils/makerepo.sh b/contrib/fedora/utils/makerepo.sh index f2d10df4a3..266aac8fe2 100755 --- a/contrib/fedora/utils/makerepo.sh +++ b/contrib/fedora/utils/makerepo.sh @@ -685,7 +685,7 @@ popd if [[ $LOCAL != 0 ]]; then rm -rf ./.makerepo.git/ mv "$DIRNAME/.git" ./.makerepo.git/ - $FEDPKG $DIST local + $FEDPKG $DIST local -- --noclean mv ./.makerepo.git/ "$DIRNAME/.git" pushd "$DIRNAME" git checkout -- .gitignore