From bab627bc22ff6fb67ff4b862d7e947e0ca90e549 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 22 Jun 2012 12:51:04 +0900 Subject: [PATCH] cabal_tweak_dep_ver: use backup arg as extra suffix prefix --- ghc-rpm-macros.ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index ff555d9..0e94ec6 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -24,7 +24,7 @@ fi if ! grep -q "%1[ >=].*%2"; then\ exit 1\ fi\ -sed -i.%{?3}%{!?3:%1} -e "s/\(%1[ >=].*\)%2/\1%3/g" %{pkg_name}-%{version}/%{pkg_name}.cabal +sed -i.%{?3}%1 -e "s/\(%1[ >=].*\)%2/\1%3/g" %{pkg_name}-%{version}/%{pkg_name}.cabal # configure %cabal_configure\