Skip to content

Commit 4f22c4d

Browse files
committed
Make an exception for bzip2 licenses
1 parent 7ca3dd8 commit 4f22c4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Distribution/Server/Packages/Unpack.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ isAcceptableLicense = either goSpdx goLegacy . licenseRaw
519519
goSimple (SPDX.ELicenseRef _) = False -- don't allow referenced licenses
520520
goSimple (SPDX.ELicenseIdPlus _) = False -- don't allow + licenses (use GPL-3.0-or-later e.g.)
521521
goSimple (SPDX.ELicenseId SPDX.CC0_1_0) = True -- CC0 isn't OSI approved, but we allow it as "PublicDomain", this is eg. PublicDomain in http://hackage.haskell.org/package/string-qq-0.0.2/src/LICENSE
522+
goSimple (SPDX.ELicenseId SPDX.Bzip2_1_0_5) = True -- not OSI approved, but make an exception: https://github.com/haskell/hackage-server/issues/1294
523+
goSimple (SPDX.ELicenseId SPDX.Bzip2_1_0_6) = True -- same as above
522524
goSimple (SPDX.ELicenseId lid) = SPDX.licenseIsOsiApproved lid || SPDX.LId.licenseIsFsfLibre lid -- allow only OSI or FSF approved licenses.
523525

524526
-- pre `cabal-version: 2.2`

0 commit comments

Comments
 (0)