~ubuntu-branches/ubuntu/quantal/gutenprint/quantal

« back to all changes in this revision

Viewing changes to debian/local/pyppd/pyppd/runner.py

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2010-09-21 20:45:03 UTC
  • Revision ID: james.westby@ubuntu.com-20100921204503-qvdkvkz6obg3mklj
Tags: 5.2.6-0ubuntu6
debian/local/pyppd/pyppd/: Updated to pyppd 0.4.9, to suppress runtime
error tracebacks by putting a "try: ... except ...: pass" construct around
the main function call. This avoids SIGPIPE crashes when the execution of
the self-extracting compressed PPD file archives gets stopped by the
calling process (LP: #618017).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
def parse_args():
10
10
    usage = "usage: %prog [options] ppds_directory"
11
 
    version = "%prog 0.4.3\n" \
 
11
    version = "%prog 0.4.9\n" \
12
12
              "Copyright (c) 2010 Vitor Baptista.\n" \
13
13
              "This is free software; see the source for copying conditions.\n" \
14
14
              "There is NO warranty; not even for MERCHANTABILITY or\n" \
58
58
    (options, args) = parse_args()
59
59
    configure_logging(options.verbosity)
60
60
    ppds_directory = args[0]
61
 
    
 
61
 
62
62
    logging.info('Archiving folder "%s".' % ppds_directory)
63
63
    archive = archiver.archive(ppds_directory)
64
64
    if not archive: