~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/librarianserver/librariangc.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-30 10:09:30 UTC
  • mfrom: (14606.2.8 apocalibrarian)
  • Revision ID: launchpad@pqm.canonical.com-20111230100930-kp3e0l6wakissewm
[r=wgrant][no-qa] Move canonical.librarian to
        lp.services.librarian(server).

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
__metaclass__ = type
7
7
 
8
 
from datetime import datetime, timedelta
 
8
from datetime import (
 
9
    datetime,
 
10
    timedelta,
 
11
    )
9
12
import errno
 
13
import os
10
14
import re
11
15
import sys
12
16
from time import time
13
 
import os
14
17
 
15
18
from zope.interface import implements
16
19
 
 
20
from canonical.database.postgresql import (
 
21
    drop_tables,
 
22
    listReferences,
 
23
    quoteIdentifier,
 
24
    )
17
25
from lp.services.config import config
18
 
from canonical.database.postgresql import drop_tables, quoteIdentifier
 
26
from lp.services.librarianserver.storage import (
 
27
    _relFileLocation as relative_file_path,
 
28
    _sameFile,
 
29
    )
19
30
from lp.services.looptuner import (
20
31
    DBLoopTuner,
21
32
    ITunableLoop,
22
33
    )
23
 
from canonical.librarian.storage import _relFileLocation as relative_file_path
24
 
from canonical.librarian.storage import _sameFile
25
 
from canonical.database.postgresql import listReferences
 
34
 
26
35
 
27
36
log = None  # This is set by cronscripts/librarian-gc.py
28
37
debug = False