From 6d0248b4f845b5995457acbf78606473d2f3d186 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 25 May 2024 07:54:05 +0200 Subject: Fix archive name generation --- lib/SlackBuilder/Download.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/SlackBuilder') diff --git a/lib/SlackBuilder/Download.hs b/lib/SlackBuilder/Download.hs index 53e609c..088f2cc 100644 --- a/lib/SlackBuilder/Download.hs +++ b/lib/SlackBuilder/Download.hs @@ -186,6 +186,8 @@ cloneAndArchive repo tarballPath tagPrefix = do >> createLzmaTarball repositoryTarballPath repositoryArchivePath >> removePathForcibly repositoryTarballPath +-- | Takes a directory as input and a file name as output and creates a tar.xz +-- archive from the given directory. createLzmaTarball :: FilePath -> FilePath -> IO (Digest MD5) createLzmaTarball input output = runConduitRes $ yield input .| void tarFilePath -- cgit v1.2.3