File tree 2 files changed +7
-0
lines changed
cabal-install/Distribution/Client
cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE MultiWayIf #-}
2
2
{-# LANGUAGE NamedFieldPuns #-}
3
+ {-# LANGUAGE OverloadedStrings #-}
3
4
{-# LANGUAGE RecordWildCards #-}
4
5
{-# LANGUAGE TupleSections #-}
5
6
{-# LANGUAGE ViewPatterns #-}
@@ -222,6 +223,12 @@ packageToSdist verbosity listSources archiveFormat outputFile pkg = do
222
223
Right path -> tell [(Tar. fileEntry path contents) { Tar. entryPermissions = perm' }]
223
224
224
225
entries <- execWriterT (evalStateT entriesM [] )
226
+ let
227
+ -- Pretend our GZip file is made on Unix.
228
+ normalize bs = BSL. concat [first, " \x03 " , rest']
229
+ where
230
+ (first, rest) = BSL. splitAt 9 bs
231
+ rest' = BSL. tail rest
225
232
write . GZip. compress . Tar. write $ entries
226
233
notice verbosity $ " Wrote tarball sdist to " ++ outputFile ++ " \n "
227
234
| archiveFormat == ZipFormat -> do
You can’t perform that action at this time.
0 commit comments