~debian-lptools/debian/sid/lptools/sid

« back to all changes in this revision

Viewing changes to bin/lp-force-branch-mirror

  • Committer: Jelmer Vernooij
  • Date: 2023-09-28 12:07:22 UTC
  • mfrom: (2.18.8)
  • Revision ID: jelmer@jelmer.uk-20230928120722-704pws90v7e943dk
* New upstream snapshot.
 + Drop patches for conversion to python 3 and breezy; now merged upstream.
+ debian/upstream/metadata: Drop unknown Homepage field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/python
 
1
#! /usr/bin/python3
2
2
# vi: expandtab:sts=4
3
3
 
4
4
# Copyright (C) 2011 Jelmer Vernooij
22
22
 
23
23
    lp = config.get_launchpad("force-branch-mirror")
24
24
    branches = lp.branches.getByUrls(urls=args)
25
 
    for url, branch_dict in branches.iteritems():
 
25
    for url, branch_dict in branches.items():
26
26
        if branch_dict is None:
27
 
            print "Branch %s not found" % url
 
27
            print("Branch %s not found" % url)
28
28
        else:
29
29
            branch = lp.load(branch_dict["self_link"])
30
 
            print "%s: %s" % (branch.bzr_identity, branch.requestMirror())
 
30
            print("%s: %s" % (branch.bzr_identity, branch.requestMirror()))
31
31
 
32
32
if __name__ == '__main__':
33
33
    sys.exit(main(sys.argv))