~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to install.py

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-14 20:08:44 UTC
  • mfrom: (2.1.118 lucid)
  • Revision ID: james.westby@ubuntu.com-20091214200844-z8qhqwgppbu3t7ze
Tags: 3.9.10-4
KBSD patch from KiBi (Closes: #560796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# Author: Don Welch
21
21
#
22
22
 
23
 
__version__ = '5.0'
 
23
__version__ = '5.1'
24
24
__title__ = 'HPLIP Installer'
25
25
__mod__ = 'hplip-install'
26
26
__doc__ = "Installer for HPLIP tarball (called automatically after invoking the .run file)."
56
56
         ("Force unknown distro mode:", "-d", "option", False),
57
57
         ("Force installation of Qt4 support:", "--qt4 (same as --enable=qt4)", "option", False),
58
58
         ("Force disable Qt4 support:", "--no-qt4 (same as --disable=qt4", "option", False),
59
 
         ("Force installation of Qt3 support:", "--qt3 (same as --enable=qt3)", "option", False),
60
 
         ("Force disable Qt3 support:", "--no-qt3 (same as --disable=qt3", "option", False),
 
59
         #("Force installation of Qt3 support:", "--qt3 (same as --enable=qt3)", "option", False),
 
60
         #("Force disable Qt3 support:", "--no-qt3 (same as --disable=qt3", "option", False),
61
61
         ("Force installation of PolicyKit support:", "--policykit (same as --enable=policykit)", "option", False),
62
62
         ("Force disable PolicyKit support:", "--no-policykit (same as --disable=policykit)", "option", False),
63
63
         ("Force configure enable/disable flag:", "--enable=<flag> or --disable=<flag>, where <flag> is 'fax-build', 'qt4', 'pp-build', etc. See ./configure --help for more info.", "option", False),
88
88
try:
89
89
    opts, args = getopt.getopt(sys.argv[1:], 'hl:giatxdq:nr:b',
90
90
        ['help', 'help-rest', 'help-man', 'help-desc', 'gui', 'lang=',
91
 
        'logging=', 'interactive', 'auto', 'text', 'qt4', 'qt3',
 
91
        'logging=', 'interactive', 'auto', 'text', 'qt4',
92
92
        'network', 'retries=', 'enable=', 'disable=',
93
 
        'no-qt3', 'no-qt4', 'policykit', 'no-policykit', 'debug'])
 
93
        'no-qt4', 'policykit', 'no-policykit', 'debug'])
94
94
 
95
95
except getopt.GetoptError, e:
96
96
    log.error(e.msg)
166
166
            log.error("Duplicate configuration flag: %s" % a)
167
167
            sys.exit(1)
168
168
 
169
 
    elif o == '--qt3':
170
 
        if 'qt3' not in enable and 'qt3' not in disable:
171
 
            enable.append('qt3')
172
 
        else:
173
 
            log.error("Duplicate configuration flag: %s" % a)
174
 
            sys.exit(1)
175
 
 
176
 
    elif o == '--no-qt3':
177
 
        if 'qt3' not in disable and 'qt3' not in enable:
178
 
            disable.append('qt3')
179
 
        else:
180
 
            log.error("Duplicate configuration flag: %s" % a)
181
 
            sys.exit(1)
182
 
 
183
169
    elif o == '--policykit':
184
170
        if 'policykit' not in enable and 'policykit' not in disable:
185
171
            enable.append('policykit')