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.
This commit is contained in:
@@ -685,7 +685,7 @@ popd
|
|||||||
if [[ $LOCAL != 0 ]]; then
|
if [[ $LOCAL != 0 ]]; then
|
||||||
rm -rf ./.makerepo.git/
|
rm -rf ./.makerepo.git/
|
||||||
mv "$DIRNAME/.git" ./.makerepo.git/
|
mv "$DIRNAME/.git" ./.makerepo.git/
|
||||||
$FEDPKG $DIST local
|
$FEDPKG $DIST local -- --noclean
|
||||||
mv ./.makerepo.git/ "$DIRNAME/.git"
|
mv ./.makerepo.git/ "$DIRNAME/.git"
|
||||||
pushd "$DIRNAME"
|
pushd "$DIRNAME"
|
||||||
git checkout -- .gitignore
|
git checkout -- .gitignore
|
||||||
|
Reference in New Issue
Block a user