public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-ruby/capistrano/files: capistrano-2.15.5-sudo-cleanup.patch
@ 2014-08-13 13:20 Hans de Graaff (graaff)
  0 siblings, 0 replies; only message in thread
From: Hans de Graaff (graaff) @ 2014-08-13 13:20 UTC (permalink / raw
  To: gentoo-commits

graaff      14/08/13 13:20:27

  Added:                capistrano-2.15.5-sudo-cleanup.patch
  Log:
  Add ruby20. Fix double sudo in cleanup task.
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

Revision  Changes    Path
1.1                  dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch?rev=1.1&content-type=text/plain

Index: capistrano-2.15.5-sudo-cleanup.patch
===================================================================
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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-13 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 13:20 [gentoo-commits] gentoo-x86 commit in dev-ruby/capistrano/files: capistrano-2.15.5-sudo-cleanup.patch Hans de Graaff (graaff)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox