~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/pgrestore.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 12:11:50 UTC
  • mfrom: (14625.2.7 gina-dsc-binaries)
  • Revision ID: launchpad@pqm.canonical.com-20120106121150-e0bucmb5qeyytnn9
[r=wgrant][bug=911943] Fix SourcePackageReleaseDscBinariesUpdater:
        round chunk_size to int (and document this issue).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
when we are running PostgreSQL 8 as it will correctly order its dumps.
9
9
"""
10
10
 
11
 
import sys, os, tempfile
12
11
from optparse import OptionParser
13
 
from subprocess import Popen, PIPE
 
12
import os
14
13
from signal import SIGTERM
 
14
from subprocess import (
 
15
    PIPE,
 
16
    Popen,
 
17
    )
 
18
import sys
 
19
import tempfile
 
20
 
15
21
 
16
22
class DumpFile(object):
17
23
    """File-like object wrapping a normal or compressed file on disk"""