~cupstream2distro-maintainers/cupstream2distro/trunk

« back to all changes in this revision

Viewing changes to copy2distro

  • Committer: Robert Bruce Park
  • Date: 2016-09-02 22:36:46 UTC
  • Revision ID: robert.park@canonical.com-20160902223646-p51alzetpkft1br3
Ignore source PPAs that have been deleted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from os.path import isdir
34
34
from os import makedirs, rename
35
35
 
 
36
from lazr.restfulclient.errors import NotFound
 
37
 
36
38
from glob import glob
37
39
from operator import attrgetter
38
40
from subprocess import Popen, PIPE
159
161
                    logging.error(message)
160
162
                    continue
161
163
 
162
 
                src_ppa = lp.get_ppa(ppa)
 
164
                try:
 
165
                    src_ppa = lp.get_ppa(ppa)
 
166
                except NotFound:
 
167
                    continue
163
168
 
164
169
                dest_archive.copyPackage(
165
170
                    from_archive=src_ppa,