autobuild 1.5.55 → 1.5.56

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == Version 1.5.55
2
+ * quickfix release
3
+ * last attempt to fix the same issue than in 1.5.55 and 1.5.54
4
+
1
5
  == Version 1.5.55
2
6
  * quickfix release
3
7
  * really fix update vs. patching problem. The issue was related to patches
@@ -145,6 +145,9 @@ module Autobuild
145
145
 
146
146
  def checkout(package) # :nodoc:
147
147
  update_cache(package)
148
+ # Un-apply any existing patch so that, when the files get
149
+ # overwritten by the new checkout, the patch are re-applied
150
+ patch(package, [])
148
151
 
149
152
  base_dir = File.dirname(package.srcdir)
150
153
 
@@ -171,11 +174,6 @@ module Autobuild
171
174
  Subprocess.run(package, :import, Autobuild.tool('tar'), *cmd)
172
175
  end
173
176
 
174
- # This method can be used to re-checkout an existing package /
175
- # directory. If we successfully did that, make sure we delete the
176
- # patch list so that it gets re-patched
177
- FileUtils.rm_f(patchlist(package))
178
-
179
177
  rescue OpenURI::HTTPError
180
178
  raise Autobuild::Exception.new(package.name, :import)
181
179
  rescue SubcommandFailed
@@ -154,7 +154,7 @@ class Importer
154
154
  def apply(package, path); call_patch(package, false, path) end
155
155
  def unapply(package, path); call_patch(package, true, path) end
156
156
 
157
- def patch(package)
157
+ def patch(package, patches = self.patches)
158
158
  # Get the list of already applied patches
159
159
  patches_file = patchlist(package)
160
160
  cur_patches = if !File.exists?(patches_file) then []
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.55" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.56" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 109
4
+ hash: 115
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 55
10
- version: 1.5.55
9
+ - 56
10
+ version: 1.5.56
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux