Skip to content

Commit

Permalink
Merge pull request #5758 from emilypi/emilypi/remove-zip-sdist
Browse files Browse the repository at this point in the history
Fix Incorrect `tar.gz` Extension
  • Loading branch information
emilypi authored Dec 2, 2018
2 parents dd745a9 + f826dc0 commit a29abd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cabal-install/Distribution/Client/CmdSdist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,14 @@ sdistAction SdistFlags{..} targetStrings globalFlags = do
| listSources -> SourceList '\n'
| otherwise -> TarGzArchive

ext = case format of
SourceList _ -> "list"
TarGzArchive -> "tar.gz"

outputPath pkg = case mOutputPath' of
Just path
| path == "-" -> "-"
| otherwise -> path </> prettyShow (packageId pkg) <.> "tar.gz"
| otherwise -> path </> prettyShow (packageId pkg) <.> ext
Nothing
| listSources -> "-"
| otherwise -> distSdistFile distLayout (packageId pkg)
Expand Down

0 comments on commit a29abd1

Please sign in to comment.