repomate 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,9 +60,10 @@ module RepoMate
60
60
  # Create Packages* files
61
61
  def create_packages
62
62
  source_category = "dists"
63
+
64
+ packages_template = ERB.new File.new(File.join(File.dirname(__FILE__), "templates/packages.erb")).read, nil, "%"
63
65
 
64
66
  Architecture.dataset(source_category).each do |entry|
65
- packages_template = ERB.new File.new(File.join(File.dirname(__FILE__), "templates/packages.erb")).read, nil, "%"
66
67
 
67
68
  source = Architecture.new(entry[:architecture], entry[:component], entry[:suitename], source_category)
68
69
  source.files.each do |fullname|
@@ -8,6 +8,7 @@ Components: <%= component.join(', ') %>
8
8
  Description: Repository for debian
9
9
  MD5Sum:
10
10
  <% Architecture.dataset(source_category).each do |entry| %>
11
+ <% next unless entry[:suitename].eql?(suite) %>
11
12
  <% source = Architecture.new(entry[:architecture], entry[:component], entry[:suitename], source_category) %>
12
13
  <% Dir.glob(File.join(entry[:fullpath], "Packages*")).each do |file| %>
13
14
  <% path = File.join(entry[:component], entry[:architecture_dir], File.basename(file)) %>
@@ -19,6 +20,7 @@ MD5Sum:
19
20
  <% end %>
20
21
  SHA1:
21
22
  <% Architecture.dataset(source_category).each do |entry| %>
23
+ <% next unless entry[:suitename].eql?(suite) %>
22
24
  <% source = Architecture.new(entry[:architecture], entry[:component], entry[:suitename], source_category) %>
23
25
  <% Dir.glob(File.join(entry[:fullpath], "Packages*")).each do |file| %>
24
26
  <% path = File.join(entry[:component], entry[:architecture_dir], File.basename(file)) %>
@@ -30,6 +32,7 @@ SHA1:
30
32
  <% end %>
31
33
  SHA256:
32
34
  <% Architecture.dataset(source_category).each do |entry| %>
35
+ <% next unless entry[:suitename].eql?(suite) %>
33
36
  <% source = Architecture.new(entry[:architecture], entry[:component], entry[:suitename], source_category) %>
34
37
  <% Dir.glob(File.join(entry[:fullpath], "Packages*")).each do |file| %>
35
38
  <% path = File.join(entry[:component], entry[:architecture_dir], File.basename(file)) %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repomate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: