[requestsync] of removed & reinstated package uses 'ubuntu' rather than the package

Bug #434984 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

I did $ requestsync --lp -e config-manager

this made a bug filed on 'ubuntu'. Config-manager isn't in karmic, but it was in hardy, so the package exists and can have a bug filed on it. It would be nicer if requestsync were to do this ;) - I did it by hand after they were filed, when I realised.

ProblemType: Bug
Architecture: amd64
Date: Wed Sep 23 11:34:35 2009
DistroRelease: Ubuntu 9.10
Package: ubuntu-dev-tools 0.78
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=la.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
SourcePackage: ubuntu-dev-tools
Uname: Linux 2.6.31-9-generic x86_64

Revision history for this message
Robert Collins (lifeless) wrote :
Revision history for this message
Jonathan Davies (jpds) wrote :

Interesting, this seems to be a problem with the Launchpad API:

    # Get the current Ubuntu source package
    try:
        ubuntu_srcpkg = getUbuntuSrcPkg(srcpkg, release)
        ubuntu_version = Version(ubuntu_srcpkg.getVersion())
        ubuntu_component = ubuntu_srcpkg.getComponent()
        newsource = False # override the -n flag
    except udtexceptions.PackageNotFoundException:
        ubuntu_srcpkg = None
        ubuntu_version = Version(0)
        ubuntu_component = 'universe' # let's assume universe
        if not newsource:
            print "'%s' doesn't exist in 'Ubuntu %s'.\nDo you want to sync a new package?" % \
                (srcpkg, release)
            raw_input_exit_on_ctrlc('Press [Enter] to continue or [Ctrl-C] to abort. ')
            newsource = True

If only there was a was_removed boolean variable.

Revision history for this message
Michael Bienia (geser) wrote :

It's not a problem with the Launchpad API per se, as archive.getPublishedSources() supports a status value of 'Deleted' [1].
As for now we were only interested in published source packages, the u-d-t wrapper around the LP API (lpapicache.py) sets this value to 'Published' per default and doesn't offer an option to override it. It wouldn't be hard to add it though.

1: https://edge.launchpad.net/+apidoc/#archive

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Benjamin Drung (bdrung)
summary: - requestsync of removed & reinstated package uses 'ubuntu' rather than
+ [requestsync] of removed & reinstated package uses 'ubuntu' rather than
the package
Revision history for this message
Dan Streetman (ddstreet) wrote :

as this is ~10 years old, i'm closing as wontfix

Changed in ubuntu-dev-tools (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.