on master help sign in
Add a slug file fpco/stackage-server#37
commit8bf144a9023c1c9f7537d58589d970f068892ba6 authorMichael Snoyman <michael@snoyman.com> dateSun 23 Nov 2014, 14:07 (12 years ago) parent3dfe7b4
2 files changed+9−1
Stackage/InstallInfo.hs+8 Stackage/ServerFiles.hs+1−1
Stackage/InstallInfo.hs+8
@@ -126,6 +126,14 @@ getInstallInfo settings = do
126126 , show now
127127 ]
128128
129+ System.IO.UTF8.writeFile (incexc </> "slug") $ concat
130+ [ date
131+ , "-"
132+ , ghcVer
133+ , if requireHaskellPlatform settings then "hp" else ""
134+ , if isInc then "-inc" else "-exc"
135+ ]
136+
129137 return ii
130138
131139biToSPI :: BuildInfo -> SelectedPackageInfo
Stackage/ServerFiles.hs+1−1
@@ -37,7 +37,7 @@ createHackageFile isInc hp ii ghcVer date hackageH tarballH = do
3737 hPutStr tarballH $ concat
3838 [ "#!/bin/bash -ex\n\ntar czfv "
3939 , stackageFP
40− , " hackage desc ../build*"
40+ , " hackage desc slug ../build*"
4141 ]
4242 indextargz <- getTarballName
4343 indexLBS <- L.readFile indextargz