Browse Source

fix: create cache dirs to avoid file copy errors

This fixes builds that don't use caching.
tags/0.1
Cory Fields 6 years ago
parent
commit
6a64b48d69
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      bin/gbuild

+ 3
- 1
bin/gbuild View File

@@ -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