~ursinha/ubuntu-ci-services-itself/tricks-hp-rate-limit

« back to all changes in this revision

Viewing changes to ppa-assigner/ppa_assigner/ppa_sync.py

  • Committer: Chris Johnston
  • Author(s): Francis Ginther
  • Date: 2014-03-13 20:23:00 UTC
  • mfrom: (381.2.1 fix-publish)
  • Revision ID: chris_johnston-20140313202300-2brvtywcly7jgtrl
[r=Chris Johnston] Pass the source packages to the publisher instead of the binary packages and remove the ppa_sync check to not copy if the package is already there.  from Francis Ginther

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
                '%s is not fully published in the source PPA', package)
135
135
            continue
136
136
 
137
 
        if _should_update(target_ppa, package, series, source_data['version']):
138
 
            logging.info('Copying %s - %s for arches %s',
139
 
                         package, source_data['version'], arches_built)
140
 
            target_ppa.syncSource(from_archive=ppa,
141
 
                                  include_binaries=True,
142
 
                                  source_name=package,
143
 
                                  to_pocket='Release',
144
 
                                  version=source_data['version'],
145
 
                                  to_series=series.name)
146
 
        else:
147
 
            logging.info('Package %s - %s for arches %s already in target',
148
 
                         package, source_data['version'], arches_built)
 
137
        logging.info('Copying %s - %s for arches %s',
 
138
                     package, source_data['version'], arches_built)
 
139
        target_ppa.syncSource(from_archive=ppa,
 
140
                              include_binaries=True,
 
141
                              source_name=package,
 
142
                              to_pocket='Release',
 
143
                              version=source_data['version'],
 
144
                              to_series=series.name)