diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-08-21 13:38:20 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-08-21 13:38:20 +0200 |
| commit | 6983304b9d11e78ebf5fd21c835dd04c776102f5 (patch) | |
| tree | b0a89cafc0a71ee5c4d94b872fcd6f68d3adb29f /app/Main.hs | |
| parent | 258604f22d2bc50480aa4eb57778ab96c97cf1c6 (diff) | |
| download | slackbuilder-6983304b9d11e78ebf5fd21c835dd04c776102f5.tar.gz | |
Download and determine the digest
Diffstat (limited to 'app/Main.hs')
| -rw-r--r-- | app/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs index 2e92865..eea4951 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -38,6 +38,8 @@ main = do <$> remoteFileExists urlPath ArchiveCommand repo nameVersion tarball tagPrefix -> cloneAndArchive repo nameVersion tarball tagPrefix >> pure Nothing + DownloadCommand url target -> fmap (Text.pack . show) + <$> download url target chooseTransformFunction (Just "php") = phpTransform chooseTransformFunction (Just "rdiff-backup") = Text.stripPrefix "v" chooseTransformFunction _ = stripPrefix "v" @@ -45,6 +47,6 @@ main = do $ fromMaybe string $ Text.stripPrefix prefix string phpTransform version - | (majorPrefix, patchVersion) <- Text.breakOnEnd "." version + | (majorPrefix, _patchVersion) <- Text.breakOnEnd "." version , majorPrefix == "php-8.2." = Just $ Text.drop (Text.length "php-") version | otherwise = Nothing |
