~ubuntu-branches/debian/squeeze/alsa-utils/squeeze

« back to all changes in this revision

Viewing changes to debian/patches/debian_alsaconf_noclear.patch

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Elimar Riesebieter
  • Date: 2008-06-25 10:14:09 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080625101409-uv0q00ftzk3tisex
Tags: 1.0.16-2
[ Elimar Riesebieter ]
Dropped udev recommendation (closes: 476728)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# debian_alsaconf_noclear.patch by Thomas Hood
 
2
#
 
3
# Don't clear the screen. (Let the user see error messages.)
 
4
Index: alsa-utils-1.0.15/alsaconf/alsaconf.in
 
5
===================================================================
 
6
--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200
 
7
+++ alsa-utils-1.0.15/alsaconf/alsaconf.in      2007-10-21 14:57:02.000000000 +0200
 
8
@@ -483,10 +483,19 @@
 
9
   $DIALOG --msgbox "$msg" 17 60 || acex 0
 
10
 }
 
11
 
 
12
+clear() {
 
13
+    echo
 
14
+}
 
15
+
 
16
 # Exit function
 
17
 acex() {
 
18
   cleanup
 
19
-  clear
 
20
+  if [ "$1" = 0 ] ; then
 
21
+      clear
 
22
+  else
 
23
+      # Don't clear error messages
 
24
+      echo
 
25
+  fi
 
26
   exit $1
 
27
 }
 
28