[SCM] soundscaperenderer/master: don't sleep in '-V'

zmoelnig-guest at users.alioth.debian.org zmoelnig-guest at users.alioth.debian.org
Mon Mar 10 11:41:01 UTC 2014


The following commit has been merged in the master branch:
commit 345f11b49c9cee418ab2d4018836ac33c4283c81
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Mon Mar 10 12:14:48 2014 +0100

    don't sleep in '-V'

diff --git a/debian/patches/series b/debian/patches/series
index ceb7c6f..0cfed4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 upstreamversion.patch
 exclude_pdf.patch
+verbose_nosleep.patch
diff --git a/debian/patches/verbose_nosleep.patch b/debian/patches/verbose_nosleep.patch
new file mode 100644
index 0000000..90f2bd5
--- /dev/null
+++ b/debian/patches/verbose_nosleep.patch
@@ -0,0 +1,21 @@
+Description: prevent sleep() when redirecting output
+ Calling "ssr-foo -V" will do a little animation using sleep().
+ While this is nice in an interactive session, it is rather annoying when called
+ from batch-scripts. We use "isatty()" to determine whether the output is
+ redirected, and only sleep() in an interactive shell.
+Author: IOhannes m zmölnig
+Bug: https://github.com/SoundScapeRenderer/ssr/issues/13
+Forwarded: https://github.com/SoundScapeRenderer/ssr/issues/13
+Last-Update: 2014-03-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- soundscaperenderer.orig/src/configuration.cpp
++++ soundscaperenderer/src/configuration.cpp
+@@ -57,6 +57,7 @@
+   {
+     std::cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
+       " It's ... " << std::flush;
++    if(isatty(1))
+     sleep(3);
+     std::cout <<
+       "the " PACKAGE_NAME

-- 
soundscaperenderer packaging



More information about the pkg-multimedia-commits mailing list