dr 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dr +5 -3
- data/lib/dr/gitpackage.rb +4 -4
- data/lib/dr/version.rb +1 -1
- metadata +1 -1
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
|
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
|
-
|
327
|
-
|
326
|
+
if version
|
327
|
+
repo.push pkg.name, version, suite
|
328
|
+
updated += 1
|
329
|
+
end
|
328
330
|
|
329
331
|
log :info, ""
|
330
332
|
end
|
data/lib/dr/gitpackage.rb
CHANGED
@@ -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
|
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
|
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
|
297
|
+
m = l.match(/^Architecture: (.+)/)
|
298
298
|
arches += m.captures[0].chomp.split(" ") if m
|
299
299
|
end
|
300
300
|
end
|
data/lib/dr/version.rb
CHANGED