dr 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/dr CHANGED
@@ -172,7 +172,7 @@ class RepoCLI < ExtendedThor
172
172
  repo_conf[:desc] = desc if desc.length > 0
173
173
 
174
174
  arches = ask " Architectures [#{repo_conf[:arches].join(" ").fg("yellow")}]:"
175
- repo_conf[:arches] = arches.split /\s+/ if arches.length > 0
175
+ repo_conf[:arches] = arches.split(/\s+/) if arches.length > 0
176
176
 
177
177
  components = ask " Components [#{repo_conf[:components].join(" ").fg("yellow")}]:"
178
178
  repo_conf[:components] = components.split /\s+/ if components.length > 0
@@ -323,8 +323,10 @@ class RepoCLI < ExtendedThor
323
323
  next
324
324
  end
325
325
 
326
- repo.push pkg.name, version, suite if version
327
- updated += 1
326
+ if version
327
+ repo.push pkg.name, version, suite
328
+ updated += 1
329
+ end
328
330
 
329
331
  log :info, ""
330
332
  end
@@ -27,7 +27,7 @@ module Dr
27
27
  src_name = nil
28
28
  File.open "#{tmp}/src/debian/control", "r" do |f|
29
29
  f.each_line do |line|
30
- match = line.match /^Source: (.+)$/
30
+ match = line.match(/^Source: (.+)$/)
31
31
  if match
32
32
  src_name = match.captures[0]
33
33
  break
@@ -89,7 +89,7 @@ module Dr
89
89
  src_name = nil
90
90
  File.open "#{tmp}/src/debian/control", "r" do |f|
91
91
  f.each_line do |line|
92
- match = line.match /^Source: (.+)$/
92
+ match = line.match(/^Source: (.+)$/)
93
93
  if match
94
94
  src_name = match.captures[0]
95
95
  break
@@ -127,7 +127,7 @@ module Dr
127
127
  msg = "This revision of #{@name.style "pkg-name"} has already " +
128
128
  "been built and is available as #{v.to_s.style "version"}"
129
129
  log :info, msg
130
- return
130
+ return v
131
131
  end
132
132
  end
133
133
  end
@@ -294,7 +294,7 @@ EOS
294
294
  arches = []
295
295
  File.open control_file, "r" do |f|
296
296
  f.each_line do |l|
297
- m = l.match /^Architecture: (.+)/
297
+ m = l.match(/^Architecture: (.+)/)
298
298
  arches += m.captures[0].chomp.split(" ") if m
299
299
  end
300
300
  end
@@ -1,3 +1,3 @@
1
1
  module Dr
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: