From 7c8166e395e10d1dfe504d7ed00a3477aee8fe1c Mon Sep 17 00:00:00 2001 From: Carl George Date: May 21 2018 15:18:17 +0000 Subject: Fix %%preun to correctly remove the lfs filter on uninstall (rhbz#1580357) --- diff --git a/git-lfs.spec b/git-lfs.spec index 2304e60..4e9272d 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -33,7 +33,7 @@ Name: git-lfs Version: 2.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Git extension for versioning large files License: MIT @@ -215,8 +215,8 @@ sort -u -o devel.file-list devel.file-list %{_bindir}/%{name} install --system %preun -if [ $1 -gt 0 ]; then - %{_bindir}/%{name} uninstall +if [ $1 -eq 0 ]; then + %{_bindir}/%{name} uninstall --system fi exit 0 @@ -252,6 +252,9 @@ popd %changelog +* Mon May 21 2018 Carl George - 2.4.0-3 +- Fix %%preun to correctly remove the lfs filter on uninstall (rhbz#1580357) + * Mon Mar 12 2018 Carl George - 2.4.0-2 - Add %%go_arches fallback to work around Koji issues