~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/ftpmaster-tools/sync-source.py

  • Committer: William Grant
  • Date: 2011-12-30 06:47:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14610.
  • Revision ID: william.grant@canonical.com-20111230064717-n5re5t6we5w8o17z
Replace canonical.database usage everywhere, and format-imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
wherever) into Ubuntu dapper and the whole fake upload trick can go away.
16
16
"""
17
17
 
 
18
import _pythonpath
 
19
 
18
20
import errno
19
21
import os
20
22
import re
24
26
import tempfile
25
27
import urllib
26
28
 
27
 
import _pythonpath
28
29
from _syncorigins import origins
29
30
import apt_pkg
30
31
from debian.deb822 import Dsc
31
32
from zope.component import getUtility
32
33
 
33
 
from canonical.database.sqlbase import (
34
 
    cursor,
35
 
    sqlvalues,
36
 
    )
37
34
from lp.archiveuploader.utils import (
38
35
    DpkgSourceError,
39
36
    extract_dpkg_source,
41
38
from lp.registry.interfaces.distribution import IDistributionSet
42
39
from lp.registry.interfaces.person import IPersonSet
43
40
from lp.registry.interfaces.pocket import PackagePublishingPocket
 
41
from lp.services.database.sqlbase import (
 
42
    cursor,
 
43
    sqlvalues,
 
44
    )
44
45
from lp.services.librarian.client import LibrarianClient
45
46
from lp.services.scripts.base import (
46
47
    LaunchpadScript,