~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/ftpmaster-tools/sync-source.py

  • Committer: Julian Edwards
  • Date: 2010-08-26 08:02:08 UTC
  • mfrom: (11447 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11453.
  • Revision ID: julian.edwards@canonical.com-20100826080208-sut7s35g9z0qtk9v
merge devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
    Each element of the returned tuple is a list of lines (with trailing
381
381
    whitespace stripped).
382
382
    """
383
 
    # XXX JRV 20100211: Copied from deb822.py in python-debian. When 
 
383
    # XXX JRV 20100211: Copied from deb822.py in python-debian. When
384
384
    # Launchpad switches to Lucid this copy should be removed.
385
385
    # bug=520508
386
386
 
447
447
    if signing_rules.startswith("must be signed"):
448
448
        dsc_file.seek(0)
449
449
        # XXX JRV 20100211: When Launchpad starts depending on Lucid,
450
 
        # use dsc.split_gpg_and_payload() instead. 
 
450
        # use dsc.split_gpg_and_payload() instead.
451
451
        # bug=520508
452
452
        (gpg_pre, payload, gpg_post) = split_gpg_and_payload(dsc_file)
453
453
        if gpg_pre == [] and gpg_post == []:
454
 
            dak_utils.fubar("signature required for %s but not present" 
 
454
            dak_utils.fubar("signature required for %s but not present"
455
455
                % dsc_filename)
456
456
        if signing_rules == "must be signed and valid":
457
457
            if (gpg_pre[0] != "-----BEGIN PGP SIGNED MESSAGE-----" or
524
524
    else:
525
525
        spp = []
526
526
        for package in arguments:
527
 
            spp.extend(distro_series.getPublishedReleases(package))
 
527
            spp.extend(distro_series.getPublishedSources(package))
528
528
 
529
529
    for sp in spp:
530
530
        component = sp.component.name