diff options
author | 2015-06-18 17:35:17 +0100 | |
---|---|---|
committer | 2015-06-18 17:35:17 +0100 | |
commit | b54213343d3ebe230fa2d3bd551284fb51518358 (patch) | |
tree | 99333402e4de994305826654fcf8909e20725847 | |
parent | Make running linters part of running the test suite (diff) | |
download | ruby-tinderbox-b54213343d3ebe230fa2d3bd551284fb51518358.tar.gz ruby-tinderbox-b54213343d3ebe230fa2d3bd551284fb51518358.tar.bz2 ruby-tinderbox-b54213343d3ebe230fa2d3bd551284fb51518358.zip |
Strip the 8 byte header from docker's API response
-rw-r--r-- | web/lib/packages.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/lib/packages.rb b/web/lib/packages.rb index fa4f079..2586ca3 100644 --- a/web/lib/packages.rb +++ b/web/lib/packages.rb @@ -10,6 +10,7 @@ def update_packages(ci_image) ci_container.delete packages_txt.lines.peach do |line| + line = line.bytes.drop(8).pack('c*') sha1, category, name, version, revision, slot, amd64_keyword, r19_target, r20_target, r21_target, r22_target = line.split(' ') identifier = category + '/' + name + '-' + version + (revision == 'r0' ? '' : "-#{revision}") gem_version = Gems.info(name)['version'] |