summaryrefslogtreecommitdiff
path: root/dev-ruby/capistrano/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/capistrano/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/capistrano/files')
-rw-r--r--dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch b/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch
new file mode 100644
index 000000000000..cbe68a476fd4
--- /dev/null
+++ b/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch
@@ -0,0 +1,12 @@
+diff -ur /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb ./lib/capistrano/recipes/deploy.rb
+--- ./lib/capistrano/recipes/deploy.rb 2014-08-13 15:11:31.423773610 +0200
++++ /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb 2014-05-04 11:40:39.000000000 +0200
+@@ -462,7 +462,7 @@
+ DESC
+ task :cleanup, :except => { :no_release => true } do
+ count = fetch(:keep_releases, 5).to_i
+- try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
++ run "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
+ end
+
+ desc <<-DESC