stackage-update 0.1.1.3 → 0.1.2
raw patch · 3 files changed
+10/−4 lines, 3 files
Files
- ChangeLog.md +4/−0
- app/stackage-update.hs +5/−3
- stackage-update.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.2++* Allow `--no-verify` and `--no-hashes`+ ## 0.1.1.3 * Get rid of no-single-branch code
app/stackage-update.hs view
@@ -9,11 +9,11 @@ args <- getArgs case args of ["--help"] -> putStrLn $ unlines- [ "Usage: stackage-update [--verify] [--hashes]"+ [ "Usage: stackage-update [--[no-]verify] [--[no-]hashes]" , "Run this command with no arguments to update your package index." , ""- , " --verify : Verify GPG signature on the repo"- , " --hashes : Download from the all-cabal-hashes repo"+ , " --[no-]verify : Verify GPG signature on the repo"+ , " --[no-]hashes : Download from the all-cabal-hashes repo" ] ["--summary"] -> putStrLn "Update your package index incrementally (requires git)" ["--version"] -> putStrLn $ "stackage-update version " ++ showVersion version@@ -21,7 +21,9 @@ addArg :: String -> StackageUpdateSettings -> StackageUpdateSettings addArg "--verify" = setVerify True+addArg "--no-verify" = setVerify False addArg "--hashes" = setRemote allCabalHashes . setDirectoryName "all-cabal-hashes"+addArg "--no-hashes" = setRemote allCabalFiles . setDirectoryName "all-cabal-files" addArg s = error $ concat [ "Did not understand argument " , show s
stackage-update.cabal view
@@ -1,5 +1,5 @@ name: stackage-update-version: 0.1.1.3+version: 0.1.2 synopsis: Update your package index incrementally (requires git) description: Please see <https://www.stackage.org/package/stackage-update> for description homepage: https://github.com/fpco/stackage-update