Skip to content

Commit

Permalink
Create empty output directory after it was moved out after build, bec…
Browse files Browse the repository at this point in the history
…ause GBS cant recreate this directory after it was moved out

Signed-off-by: Uladzislau Harbuz <[email protected]>
Change-Id: I28503ae93fb9bf2c7d8ffa261b8ab70f3a6bf8a7
  • Loading branch information
Shadasviar committed Jul 10, 2019
1 parent f1e77a6 commit 48276da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Festral.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: Festral
Version: 2.2.0
Version: 2.2.1
Cabal-Version: >= 1.2
License: Apache-2.0
License-file: LICENSE
Expand Down
2 changes: 1 addition & 1 deletion Festral/Builder/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ writeBuildOut _ _ _ Nothing = return Nothing
writeBuildOut logfile outdir opts (Just meta) = do
let out = hash $>> meta ++ "_B" ++ buildTime $>> meta
let outDirName = outdir ++ "/" ++ out
let getBuildOut = if noCleanRes opts then copyDirectory else renameDirectory
let getBuildOut = if noCleanRes opts then copyDirectory else (\ x y -> renameDirectory x y >> createDirectory x)

createDirectoryIfMissing True outDirName
toFile meta (outDirName ++ "/meta.txt")
Expand Down

0 comments on commit 48276da

Please sign in to comment.