[DRE-commits] [rerun] 04/12: remove patch that was never used
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon May 9 01:18:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository rerun.
commit c961fce734bf3e9d8e39754c6d22fcfcd7ef112a
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sun May 8 21:10:45 2016 -0300
remove patch that was never used
new upstream version implements the desired feature
---
...03-Add-support-for-restarting-with-SIGHUP.patch | 64 ----------------------
1 file changed, 64 deletions(-)
diff --git a/debian/patches/0003-Add-support-for-restarting-with-SIGHUP.patch b/debian/patches/0003-Add-support-for-restarting-with-SIGHUP.patch
deleted file mode 100644
index dd0f84c..0000000
--- a/debian/patches/0003-Add-support-for-restarting-with-SIGHUP.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From: Antonio Terceiro <terceiro at softwarelivre.org>
-Date: Mon, 10 Aug 2015 09:54:27 -0300
-Subject: Add support for restarting with SIGHUP
-
-Useful with unicorn and other processes that can do the right thing when
-sent a SIGHUP.
----
- lib/rerun/options.rb | 5 +++++
- lib/rerun/runner.rb | 12 ++++++++++--
- 2 files changed, 15 insertions(+), 2 deletions(-)
-
-diff --git a/lib/rerun/options.rb b/lib/rerun/options.rb
-index a5b1aaf..0005a3f 100644
---- a/lib/rerun/options.rb
-+++ b/lib/rerun/options.rb
-@@ -14,6 +14,7 @@ module Rerun
- DEFAULTS = {
- :pattern => DEFAULT_PATTERN,
- :signal => "TERM",
-+ :hup => false,
- :growl => true,
- :name => Pathname.getwd.basename.to_s.capitalize,
- :ignore => []
-@@ -49,6 +50,10 @@ module Rerun
- options[:signal] = signal
- end
-
-+ opts.on('-h', '--hup', "sends SIGHUP and lets process restart by itself (implies --signal HUP)") do
-+ options[:hup] = true
-+ end
-+
- opts.on("-c", "--clear", "clear screen before each run") do
- options[:clear] = true
- end
-diff --git a/lib/rerun/runner.rb b/lib/rerun/runner.rb
-index dcb041f..f369035 100644
---- a/lib/rerun/runner.rb
-+++ b/lib/rerun/runner.rb
-@@ -60,8 +60,12 @@ module Rerun
-
- def restart
- @restarting = true
-- stop
-- start
-+ if hup?
-+ signal('HUP')
-+ else
-+ stop
-+ start
-+ end
- @restarting = false
- end
-
-@@ -113,6 +117,10 @@ module Rerun
- @options[:name]
- end
-
-+ def hup?
-+ @options[:hup]
-+ end
-+
- def start
- if windows?
- raise "Sorry, Rerun does not work on Windows."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rerun.git
More information about the Pkg-ruby-extras-commits
mailing list