mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
parent
bd209587c6
commit
9439495304
3 changed files with 17 additions and 9 deletions
13
projects/rubygems.org/fit-n-finish.3.patch
Normal file
13
projects/rubygems.org/fit-n-finish.3.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
|
||||||
|
index b186375..de168c4 100644
|
||||||
|
--- a/lib/rubygems/defaults.rb
|
||||||
|
+++ b/lib/rubygems/defaults.rb
|
||||||
|
@@ -137,7 +129,7 @@ def self.config_file
|
||||||
|
# The path to standard location of the user's state file.
|
||||||
|
|
||||||
|
def self.state_file
|
||||||
|
- @state_file ||= File.join(Gem.state_home, "gem", "last_update_check").tap(&Gem::UNTAINT)
|
||||||
|
+ @state_file ||= File.join(Gem.state_home, "last_update_check").tap(&Gem::UNTAINT)
|
||||||
|
end
|
||||||
|
|
||||||
|
##
|
|
@ -77,15 +77,6 @@ index b186375..de168c4 100644
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -137,7 +129,7 @@ def self.config_file
|
|
||||||
# The path to standard location of the user's state file.
|
|
||||||
|
|
||||||
def self.state_file
|
|
||||||
- @state_file ||= File.join(Gem.state_home, "gem", "last_update_check").tap(&Gem::UNTAINT)
|
|
||||||
+ @state_file ||= File.join(Gem.state_home, "last_update_check").tap(&Gem::UNTAINT)
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
|
||||||
@@ -151,7 +143,11 @@ def self.cache_home
|
@@ -151,7 +143,11 @@ def self.cache_home
|
||||||
# The path to standard location of the user's data directory.
|
# The path to standard location of the user's data directory.
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,10 @@ build:
|
||||||
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
|
||||||
patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch
|
||||||
working-directory: ${{prefix}}
|
working-directory: ${{prefix}}
|
||||||
|
- run: |
|
||||||
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.3.patch
|
||||||
|
working-directory: ${{prefix}}
|
||||||
|
if: '>=3.4'
|
||||||
- run: |
|
- run: |
|
||||||
sed -i.bak -e 's/Dir\.mkdir dir, \*\[options\[:dir_mode\].*/FileUtils.mkdir_p dir, *[options[:dir_mode] \&\& 0o755].compact/' installer.rb
|
sed -i.bak -e 's/Dir\.mkdir dir, \*\[options\[:dir_mode\].*/FileUtils.mkdir_p dir, *[options[:dir_mode] \&\& 0o755].compact/' installer.rb
|
||||||
rm installer.rb.bak
|
rm installer.rb.bak
|
||||||
|
|
Loading…
Reference in a new issue