From 4d9007a9dc933b50f39153edac4972b831a3884a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Jan 26 2023 10:13:14 +0000 Subject: tweak bustle-hgettext-Cabal24.patch for CabalSpecVersion --- diff --git a/bustle-hgettext-Cabal24.patch b/bustle-hgettext-Cabal24.patch index e5b53d5..0d19d04 100644 --- a/bustle-hgettext-Cabal24.patch +++ b/bustle-hgettext-Cabal24.patch @@ -1,9 +1,10 @@ --- bustle-0.7.5/GetText.hs~ 2018-07-05 16:08:09.000000000 +0800 +++ bustle-0.7.5/GetText.hs 2020-02-24 18:26:13.282149543 +0800 -@@ -95,6 +95,9 @@ +@@ -94,6 +94,10 @@ import Distribution.Simple.InstallDirs as I import Distribution.Simple.Utils ++import Distribution.CabalSpecVersion (CabalSpecVersion(CabalSpecV2_2)) +import Distribution.Simple.Glob (matchDirFileGlob) +import Distribution.Verbosity (silent) + @@ -17,4 +18,4 @@ +-- | Newer versions of Cabal have removed this function in favour of more configurable implementation +-- We assume Cabal 2.0 +matchFileGlob :: FilePath -> IO [FilePath] -+matchFileGlob = matchDirFileGlob silent cabalVersion "." ++matchFileGlob = matchDirFileGlob silent CabalSpecV2_2 "."