~cjwatson/launchpad-buildd/lxd-no-gzip

« back to all changes in this revision

Viewing changes to bin/update-debian-chroot

[r=wgrant] Rewrite override-sources-list in Python, allowing it to have unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from argparse import ArgumentParser
13
13
import sys
14
14
 
15
 
from lpbuildd.target.chroot import ChrootUpdater
 
15
from lpbuildd.target.chroot import ChrootSetup
16
16
 
17
17
 
18
18
def main():
26
26
    args = parser.parse_args()
27
27
 
28
28
    print("Updating debian chroot for build %s" % args.build_id)
29
 
    updater = ChrootUpdater(args.build_id, args.series, args.arch)
30
 
    updater.update()
 
29
    setup = ChrootSetup(args.build_id, args.series, args.arch)
 
30
    setup.update()
31
31
    return 0
32
32
 
33
33