summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-05-25 07:54:05 +0200
committerEugen Wissner <belka@caraus.de>2024-05-25 07:54:05 +0200
commit6d0248b4f845b5995457acbf78606473d2f3d186 (patch)
tree42e0e0566c329cdd6a501b5021eb04a30ea4aef5 /lib
parentc81cabfcbfd2b91a7ce82168fdea4f9af6788b62 (diff)
downloadslackbuilder-6d0248b4f845b5995457acbf78606473d2f3d186.tar.gz
Fix archive name generation
Diffstat (limited to 'lib')
-rw-r--r--lib/SlackBuilder/Download.hs2
1 files changed, 2 insertions, 0 deletions
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