dr 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dr/gitpackage.rb +10 -9
- data/lib/dr/version.rb +1 -1
- metadata +1 -1
data/lib/dr/gitpackage.rb
CHANGED
@@ -120,7 +120,7 @@ module Dr
|
|
120
120
|
|
121
121
|
orig_rev, curr_rev = update_from_origin branch
|
122
122
|
log :info, "Branch #{branch.fg "blue"}, revision #{curr_rev[0..7].fg "blue"}"
|
123
|
-
unless
|
123
|
+
unless force
|
124
124
|
history.each do |v|
|
125
125
|
metadata = @repo.get_build_metadata @name, v
|
126
126
|
if metadata.has_key?("revision") && metadata["revision"] == curr_rev
|
@@ -180,6 +180,15 @@ module Dr
|
|
180
180
|
build_dir = "#{br}/#{build_dir_name}"
|
181
181
|
FileUtils.cp_r src_dir, build_dir
|
182
182
|
|
183
|
+
# Make orig tarball
|
184
|
+
files = Dir["#{build_dir}/*"].map { |f| "\"#{File.basename f}\"" }.join " "
|
185
|
+
log :info, "Creating orig source tarball"
|
186
|
+
tar = "tar cz -C #{build_dir} --exclude=debian " +
|
187
|
+
"-f #{br}/#{@name}_#{version.upstream}.orig.tar.gz " +
|
188
|
+
"#{files}"
|
189
|
+
p tar
|
190
|
+
ShellCmd.new tar, :tag => "tar"
|
191
|
+
|
183
192
|
apt = "sudo chroot #{br} apt-get update"
|
184
193
|
deps = <<-EOS
|
185
194
|
sudo chroot #{br} <<EOF
|
@@ -201,14 +210,6 @@ EOS
|
|
201
210
|
log :info, "Installing build dependencies"
|
202
211
|
ShellCmd.new deps, :tag => "mk-build-deps", :show_out => true
|
203
212
|
|
204
|
-
# Make orig tarball
|
205
|
-
files = Dir["#{build_dir}/*"].map { |f| "\"#{f}\"" }.join " "
|
206
|
-
log :info, "Creating orig source tarball"
|
207
|
-
tar = "tar cz -C #{build_dir} --exclude=debian " +
|
208
|
-
"-f #{br}/#{@name}_#{version.upstream}.orig.tar.gz " +
|
209
|
-
"#{files}"
|
210
|
-
ShellCmd.new tar, :tag => "tar"
|
211
|
-
|
212
213
|
log :info, "Building the package"
|
213
214
|
ShellCmd.new build, :tag => "debuild", :show_out => true
|
214
215
|
|
data/lib/dr/version.rb
CHANGED