~vorlon/ubuntu-archive-tools/bug-subscriber-list-update

« back to all changes in this revision

Viewing changes to remove-package

  • Committer: William Grant
  • Date: 2013-05-30 07:49:22 UTC
  • mto: This revision was merged to the branch mainline in revision 721.
  • Revision ID: william.grant@canonical.com-20130530074922-vchh9604k6lig5sy
Teach overrides and deletions to skip debug publications. They follow the corresponding non-debug publication and cannot be modified independently.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
def find_removables(options, package):
32
32
    if options.binaryonly:
33
33
        for binary in lputils.find_latest_published_binaries(options, package):
34
 
            yield binary, True
 
34
            if not binary.is_debug:
 
35
                yield binary, True
35
36
    else:
36
37
        source = lputils.find_latest_published_source(options, package)
37
38
        yield source, True
110
111
    options, args = parser.parse_args()
111
112
 
112
113
    options.launchpad = Launchpad.login_with(
113
 
        "remove-package", options.launchpad_instance)
 
114
        "remove-package", options.launchpad_instance, version="devel")
114
115
    lputils.setup_location(options)
115
116
 
116
117
    if options.removal_comment is None: