Fix archive name generation
This commit is contained in:
parent
c81cabfcbf
commit
6d0248b4f8
@ -186,6 +186,8 @@ cloneAndArchive repo tarballPath tagPrefix = do
|
|||||||
>> createLzmaTarball repositoryTarballPath repositoryArchivePath
|
>> createLzmaTarball repositoryTarballPath repositoryArchivePath
|
||||||
>> removePathForcibly repositoryTarballPath
|
>> 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 :: FilePath -> FilePath -> IO (Digest MD5)
|
||||||
createLzmaTarball input output = runConduitRes $ yield input
|
createLzmaTarball input output = runConduitRes $ yield input
|
||||||
.| void tarFilePath
|
.| void tarFilePath
|
||||||
|
@ -179,7 +179,7 @@ reuploadWithTemplate downloadTemplate commands packagePath version = do
|
|||||||
appendTarExtension = (<.> "tar.xz")
|
appendTarExtension = (<.> "tar.xz")
|
||||||
in fmap (appendTarExtension tarballPath,)
|
in fmap (appendTarExtension tarballPath,)
|
||||||
$ withCurrentDirectory (takeDirectory tarballPath)
|
$ withCurrentDirectory (takeDirectory tarballPath)
|
||||||
$ createLzmaTarball archiveBaseFilename archiveBaseFilename
|
$ createLzmaTarball archiveBaseFilename (appendTarExtension archiveBaseFilename)
|
||||||
handleReupload relativeTarball = do
|
handleReupload relativeTarball = do
|
||||||
liftIO $ putStrLn $ "Upload the source tarball " <> relativeTarball
|
liftIO $ putStrLn $ "Upload the source tarball " <> relativeTarball
|
||||||
uploadSource relativeTarball category'
|
uploadSource relativeTarball category'
|
||||||
|
Loading…
Reference in New Issue
Block a user