~ubuntu-branches/ubuntu/intrepid/alsa-utils/intrepid-proposed

« back to all changes in this revision

Viewing changes to debian/asoundconf

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-07-05 17:28:22 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060705172822-i8qc1x6zyu8upokb
Tags: 1.0.11-4ubuntu1
* Merge from debian unstable:
  - debian/asoundconf: Drop Ubuntu delta (whitespace-only).
  - debian/control: Retain delta (see 1.0.10-1ubuntu5 for rationale).
  - debian/dirs:
    + Retain delta (keep sbin but drop lib/udev; see below for
      debian/udev.script).
    + Remove usr/share/lintian/overrides (see 1.0.11-1 for
      rationale).
  - debian/init:
    + Retain /sbin/alsactl delta.
    + Drop shell quoting delta [both $() and `` being valid POSIX].
    + Retain delta for earlier exit with $TARGET_CARD.
  - debian/modprobe-post-install-part: Drop (see 1.0.10-1ubuntu5 for
    rationale).
  - debian/{postinst,rules}:
    + Retain deltas (/etc/udev/rules.d/85-alsa.rules).
    + Don't install lintian override.
  - debian/udev.script: Drop (instead hack debian/{init,udev.rules}).

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
 
44
44
def help(): 
45
 
        print usage
 
45
        print usage
46
46
 
47
47
 
48
48
def ensure_our_conf_exists():
148
148
 
149
149
 
150
150
def is_active():
151
 
    '''Check whether or not the user configuration file includes the
152
 
    asoundconf configuration file (so that the latter is "active").
 
151
    '''Check that the user configuration file is either absent, or,
 
152
    if present, that it includifies the asoundconf configuration file;
 
153
    in those cases asoundconf can be used to change the user's ALSA
 
154
    library configuration.
153
155
 
154
156
    Also transition from the legacy set-default-soundcard program.
155
157
 
156
 
    Return True if active, False if not.
 
158
    Return True if the above condition is met, False if not.
157
159
    '''
158
160
 
159
161
    if not os.path.exists(asoundrc_file):
160
 
        return True
 
162
        return True
161
163
 
162
164
    sds_transition()
163
165