debra 0.0.5 → 0.0.6
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/lib/debra.rb +1 -1
- data/lib/debra/execute.rb +5 -6
- metadata +2 -2
data/lib/debra.rb
CHANGED
data/lib/debra/execute.rb
CHANGED
|
@@ -18,6 +18,10 @@ module Debra
|
|
|
18
18
|
Dir.mkdir tmp_dir
|
|
19
19
|
Dir.mkdir tmp_dir + "/DEBIAN"
|
|
20
20
|
|
|
21
|
+
if @@options.revision != nil
|
|
22
|
+
@@control[:version] = @@control[:version] + "-" + @@options.revision
|
|
23
|
+
end
|
|
24
|
+
|
|
21
25
|
write tmp_dir + "/DEBIAN/control", generate_control_text
|
|
22
26
|
|
|
23
27
|
@@generate.each_pair do |name, contents|
|
|
@@ -50,12 +54,7 @@ module Debra
|
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
def package_name
|
|
53
|
-
|
|
54
|
-
version = @@control[:version] + "-" + @@options.revision
|
|
55
|
-
else
|
|
56
|
-
version = @@control[:version]
|
|
57
|
-
end
|
|
58
|
-
"#{@@control[:package]}-#{version}-#{@@control[:architecture]}.deb"
|
|
57
|
+
"#{@@control[:package]}-#{@@control[:version]}-#{@@control[:architecture]}.deb"
|
|
59
58
|
end
|
|
60
59
|
|
|
61
60
|
def write(file, str)
|