~jelmer/bzr-builddeb/no-upstream-branch

« back to all changes in this revision

Viewing changes to source_distiller.py

  • Committer: James Westby
  • Date: 2009-12-01 17:14:15 UTC
  • mfrom: (379.2.6 trunk)
  • Revision ID: james.westby@canonical.com-20091201171415-g87z5gswj1o6ms1s
Handle no-trees repo in merge-upstream, and subprocess_setup in more places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import glob
21
21
import os
22
22
import shutil
23
 
import signal
24
23
import subprocess
25
24
import tempfile
26
25
 
33
32
from bzrlib.plugins.builddeb.util import (
34
33
        get_parent_dir,
35
34
        recursive_copy,
 
35
        subprocess_setup,
36
36
        )
37
37
 
38
38
 
39
 
def subprocess_setup():
40
 
    # Python installs a SIGPIPE handler by default. This is usually not what
41
 
    # non-Python subprocesses expect.
42
 
    # Many, many thanks to Colin Watson
43
 
    signal.signal(signal.SIGPIPE, signal.SIG_DFL)
44
 
 
45
 
 
46
39
class SourceDistiller(object):
47
40
    """A source distiller extracts the source to build from a location.
48
41