write the LICENSE when downloading packages
commitfcb0c36a71181feee2e31225337170793fd94404
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateTue 4 Jun 2019, 11:37 (7 years ago)
parentaa46422
builder/src/File.hs+1−1
@@ -171,7 +171,7 @@ writeEntry destination root entry =
171171 let
172172 path = drop root (Zip.eRelativePath entry)
173173 in
174− if List.isPrefixOf "src/" path then
174+ if path == "LICENSE" || List.isPrefixOf "src/" path then
175175 if not (null path) && last path == '/'
176176 then Dir.createDirectoryIfMissing True (destination </> path)
177177 else LBS.writeFile (destination </> path) (Zip.fromEntry entry)