~ubuntu-branches/ubuntu/wily/soundscaperenderer/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/verbose_nosleep.patch

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmölnig (Debian/GNU)
  • Date: 2014-09-01 11:35:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140901113532-svjohhyw755nkxef
Tags: 0.4.2~dfsg-1
* Imported Upstream version 0.4.2~dfsg

* Refreshed patches.
* Removed patches applied upstream.
* Install upstream's NEWS as changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: prevent sleep() when redirecting output
2
 
 Calling "ssr-foo -V" will do a little animation using sleep().
3
 
 While this is nice in an interactive session, it is rather annoying when called
4
 
 from batch-scripts. We use "isatty()" to determine whether the output is
5
 
 redirected, and only sleep() in an interactive shell.
6
 
Author: IOhannes m zmölnig
7
 
Bug: https://github.com/SoundScapeRenderer/ssr/issues/13
8
 
Forwarded: https://github.com/SoundScapeRenderer/ssr/issues/13
9
 
Last-Update: 2014-03-10
10
 
---
11
 
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
12
 
--- soundscaperenderer.orig/src/configuration.cpp
13
 
+++ soundscaperenderer/src/configuration.cpp
14
 
@@ -57,6 +57,7 @@
15
 
   {
16
 
     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"
17
 
       " It's ... " << std::flush;
18
 
+    if(isatty(1))
19
 
     sleep(3);
20
 
     std::cout <<
21
 
       "the " PACKAGE_NAME