autobuild 1.5.55 → 1.5.56
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes.txt +4 -0
- data/lib/autobuild/import/archive.rb +3 -5
- data/lib/autobuild/importer.rb +1 -1
- data/lib/autobuild/version.rb +1 -1
- metadata +3 -3
data/Changes.txt
CHANGED
@@ -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
|
data/lib/autobuild/importer.rb
CHANGED
@@ -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 []
|
data/lib/autobuild/version.rb
CHANGED
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:
|
4
|
+
hash: 115
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 56
|
10
|
+
version: 1.5.56
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sylvain Joyeux
|