summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2024-02-14 17:41:04 +0100
committerThomas Haller <thaller@redhat.com>2024-02-20 08:41:47 +0100
commit06e039b18a1f58d4d7efe491a2c7fa8ec3eb74c9 (patch)
tree01e899628f5fb7eaf792f677617deb082410d7e7
parentcc7295698e5a13af179bb389175cf73cf0d62cb5 (diff)
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.
-rwxr-xr-xcontrib/fedora/utils/makerepo.sh2
1 files changed, 1 insertions, 1 deletions
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