[DRE-commits] [rerun] 01/01: update notify-send patch
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Feb 28 12:35:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository rerun.
commit 7f9a7a52e7cbbf0c9f4f59dada5b815b8a504d04
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Feb 28 09:35:18 2017 -0300
update notify-send patch
---
...0004-Add-support-to-notifications-on-GNU-Linux-using-noti.patch | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/debian/patches/0004-Add-support-to-notifications-on-GNU-Linux-using-noti.patch b/debian/patches/0004-Add-support-to-notifications-on-GNU-Linux-using-noti.patch
index 0bf99c8..5970cfc 100644
--- a/debian/patches/0004-Add-support-to-notifications-on-GNU-Linux-using-noti.patch
+++ b/debian/patches/0004-Add-support-to-notifications-on-GNU-Linux-using-noti.patch
@@ -1,3 +1,4 @@
+From c48bf6828e3f995ca284d3081821548179d6fe89 Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <terceiro at debian.org>
Date: Thu, 23 Feb 2017 14:37:03 -0300
Subject: Add support to notifications on GNU/Linux using notify-send
@@ -8,8 +9,6 @@ Signed-off-by: Antonio Terceiro <terceiro at debian.org>
lib/rerun/options.rb | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
-diff --git a/lib/rerun/notification.rb b/lib/rerun/notification.rb
-index 6663d47..49acd75 100644
--- a/lib/rerun/notification.rb
+++ b/lib/rerun/notification.rb
@@ -13,8 +13,6 @@ module Rerun
@@ -28,15 +27,13 @@ index 6663d47..49acd75 100644
+ if s.nil? and options[:notify] == true or options[:notify] == "notify-send"
+ if (cmd = command_named('notify-send'))
+ icon_str = "--icon #{icon}" if icon
-+ s = "#{cmd} -t 500 --hint=int:transient:1 #{icon_str} \"#{app_name}: #{title} -- #{body}\""
++ s = "#{cmd} -t 500 --hint=int:transient:1 #{icon_str} \"#{app_name}: #{title}\" \"#{body}\""
+ end
+ end
+
s
end
-diff --git a/lib/rerun/options.rb b/lib/rerun/options.rb
-index f2e4f39..1e837c7 100644
--- a/lib/rerun/options.rb
+++ b/lib/rerun/options.rb
@@ -82,7 +82,7 @@ module Rerun
--
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