debstep 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/debstep/package.rb +2 -2
- metadata +1 -1
data/lib/debstep/package.rb
CHANGED
@@ -4,7 +4,7 @@ module Debstep
|
|
4
4
|
class Package
|
5
5
|
|
6
6
|
@@required_control_fields = %w( Package Version Maintainer Description Architecture )
|
7
|
-
@@optional_control_fields = %w( Depends Section Priority )
|
7
|
+
@@optional_control_fields = %w( Depends Section Priority Pre_Depends )
|
8
8
|
|
9
9
|
@@control_fields = @@required_control_fields + @@optional_control_fields
|
10
10
|
@@control_fields.each do |a|
|
@@ -97,7 +97,7 @@ module Debstep
|
|
97
97
|
@@control_fields.select do |field|
|
98
98
|
control_field_specified?(field)
|
99
99
|
end.each do |field|
|
100
|
-
file.write("#{field}: #{control_field_value(field)}\n")
|
100
|
+
file.write("#{field.gsub('_', '-')}: #{control_field_value(field)}\n")
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|