ian 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ian.rb +2 -2
- data/lib/ian/control.rb +5 -3
- data/lib/ian/packager.rb +2 -0
- data/lib/ian/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1c4418c802dc0e70d42aa29660d7cc5b86f9aa
|
4
|
+
data.tar.gz: 3d4ad360116e4f78a37256f6e71f6cea3deec032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50103f0480fcf428bdaadc62d82e834b7d7d591f9b17b1ecaf71ef51fbe4f04c605f3bff7881b8d91b1271b6248d27fc99b7e7a454e781c4a5759ac75953b2c9
|
7
|
+
data.tar.gz: 1fe06058c8ceebc0b0f1013376227ba8caa989f801a8bd2d72418038ab9d1e5ea94e1a7dfd8eeb2dadc660263eed77cf26399a5aa58a24f5a803573d7d926908
|
data/lib/ian.rb
CHANGED
@@ -30,7 +30,7 @@ module Ian
|
|
30
30
|
def init(path, log)
|
31
31
|
dpath = debpath(path)
|
32
32
|
cpath = ctrlpath(path)
|
33
|
-
|
33
|
+
|
34
34
|
FileUtils.mkdir_p(dpath)
|
35
35
|
log.info "Created DEBIAN folder"
|
36
36
|
|
@@ -68,7 +68,7 @@ module Ian
|
|
68
68
|
def build_package(path, log)
|
69
69
|
c = control(path)
|
70
70
|
c[:size] = Utils.determine_installed_size(path)
|
71
|
-
|
71
|
+
Ian::Control.save(c, path)
|
72
72
|
|
73
73
|
pkgr = Ian::Packager.new(path, c, log)
|
74
74
|
pkgr.run
|
data/lib/ian/control.rb
CHANGED
@@ -70,8 +70,8 @@ module Ian
|
|
70
70
|
# save the control file to disk
|
71
71
|
# raises Ian::ValidationError
|
72
72
|
def self.save(ctrl, path)
|
73
|
-
|
74
|
-
File.write(path,
|
73
|
+
ctrl.valid!
|
74
|
+
File.write(File.join(path, 'control'), ctrl.to_s)
|
75
75
|
end
|
76
76
|
|
77
77
|
# default values for a new control file
|
@@ -127,6 +127,8 @@ module Ian
|
|
127
127
|
}
|
128
128
|
end
|
129
129
|
|
130
|
+
def fields; self.class.fields; end
|
131
|
+
|
130
132
|
def self.relationship_fields
|
131
133
|
[:replaces, :conflicts, :recommends, :suggests, :enhances, :predepends, :depends, :breaks]
|
132
134
|
end
|
@@ -181,7 +183,7 @@ module Ian
|
|
181
183
|
end
|
182
184
|
|
183
185
|
fields[:long_desc] = text.scan(/^ (.*)$/).flatten
|
184
|
-
|
186
|
+
|
185
187
|
return fields
|
186
188
|
end
|
187
189
|
|
data/lib/ian/packager.rb
CHANGED
data/lib/ian/version.rb
CHANGED