Browse Source

fix: create cache dirs to avoid file copy errors

This fixes builds that don't use caching.
pull/64/head
Cory Fields 8 years ago
parent
commit
6a64b48d69
  1. 4
      bin/gbuild

4
bin/gbuild

@ -177,11 +177,13 @@ cache_dir = 'cache' @@ -177,11 +177,13 @@ cache_dir = 'cache'
FileUtils.rm_rf(build_dir)
FileUtils.mkdir(build_dir)
FileUtils.mkdir_p(result_dir)
FileUtils.mkdir_p(cache_dir)
package_name = build_desc["name"] or raise "must supply name"
package_name = sanitize(package_name, "package name")
FileUtils.mkdir_p(File.join(cache_dir, "common"))
FileUtils.mkdir_p(File.join(cache_dir, package_name))
suites = build_desc["suites"] or raise "must supply suites"
archs = build_desc["architectures"] or raise "must supply architectures"
reference_datetime = build_desc["reference_datetime"] or raise "must supply reference_datetime"

Loading…
Cancel
Save