Confusing message "There is a no package named 'xserver-xorg' in Debian" when filing a bug

Bug #307620 reported by themusicgod1
100
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Steve Kowalik

Bug Description

Launchpad doesn't seem to think that xserver-xorg is a Debian package. It requested that I file a bug saying so, so this is it.

1. Go to <https://staging.launchpad.net/bugs/307620>.
2. Choose "Also affects distribution".
3. From the "Distribution" menu, choose "Debian".
4. In the "Source Package Name" field, enter "xserver-xorg" (without quotes).
5. Choose "Continue".

What happens: "There is no package in Debian named 'xserver-xorg'. If it should be here, report this as a bug."
What should happen: Since xserver-xorg is so a package in Debian <http://packages.debian.org/unstable/x11/xserver-xorg>, the package name should be accepted.

See also bug 305489.

Related branches

Revision history for this message
Ursula Junque (ursinha) wrote :

Hi,

I'm not sure I understood your problem. A package, when part of Ubuntu, becomes an Ubuntu package for Launchpad. What's your point?

Thanks,

Úrsula

Changed in launchpad:
status: New → Incomplete
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

themusicgod1 didn't mention Ubuntu, just Debian.

Changed in launchpad:
status: Incomplete → Confirmed
description: updated
description: updated
Revision history for this message
Björn Tillenius (bjornt) wrote :

In Launchpad we only link bugs to source packages. xserver-xorg is a binary package, and we have no information about binary packages for Debian at the moment. I'm reassigning this bug to Soyuz, to see whether it's feasible to import information about binary package, so that we can map a binary package name to a source package.

BTW, you want to link the bug to the 'xorg' package, not xserver-xorg.

Changed in launchpad:
status: Confirmed → New
Revision history for this message
Julian Edwards (julian-edwards) wrote :

This would require us to store Debian binaries in Launchpad which unfortunately is not going to happen, at least in the near to medium future.

Changed in soyuz:
status: New → Won't Fix
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Regardless of whether Launchpad imports binaries from other distributions, it shouldn't say things it doesn't know to be true. It says "There is no package in Debian named 'xserver-xorg'", which is false. If it specifically used the term "source package", this confusion might have been avoided.

Revision history for this message
Christian Reis (kiko) wrote :

That's a good point and an easy fix.

Changed in soyuz:
importance: Undecided → High
status: Won't Fix → Triaged
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Because the package search works for source and binary, saying "source package" is misleading at best. We could get creative with the error message though and say something like:

"There is no source package named X, or there is no binary package named X linked to a source package in Launchpad for the Debian distribution."

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I'm confused. How can the Debian "package search work[] for source and binary", if "we have no information about binary packages for Debian"?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

The search doesn't care what distribution you're searching in, it just knows it can match on both source and binary package names. Bjorn will tell you more if you want, he's the expert!

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Okay then. Since Launchpad knows whether it tracks the packages of a particular distribution, how about making the search care about what distribution you're searching in? If it doesn't do this, the error messages won't ever be particularly helpful.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 307620] Re: There is a package 'xserver-xorg' in Debian

To clarify, you're talking about special-casing Ubuntu in the bug search code?
If so, I'll defer to Bjorn at this point as he's more informed to comment on
that.

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: There is a package 'xserver-xorg' in Debian

Changing the package search code not so that it special-cases Ubuntu, but so that its error messages take into account whether Launchpad knows about the binary packages for the distribution. Currently Ubuntu is the only example of a distribution where Launchpad does know about them, but that could change in the future.

Revision history for this message
Christian Reis (kiko) wrote :

Or figure out when presenting the error whether or not the distribution has binary packages published or not. Unfortunately that might not be very cheap, but worth measuring.

Changed in soyuz:
assignee: nobody → julian-edwards
milestone: none → 2.2.2
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I figured out a quick and cheap way of determining if there's any binaries published, so I'll make that available in the Soyuz world and Bjorn can fix the Bugs message appropriately.

Changed in soyuz:
status: Triaged → In Progress
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Soyuz part fixed in RF 7809

Changed in soyuz:
status: In Progress → Fix Committed
Revision history for this message
Björn Tillenius (bjornt) wrote : Bug fixed by a commit

Fixed in devel r7809.

Changed in malone:
status: New → Fix Committed
Revision history for this message
Björn Tillenius (bjornt) wrote : Re: There is a package 'xserver-xorg' in Debian

This is not yet fixed in malone.

Changed in malone:
status: Fix Committed → Triaged
Changed in soyuz:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in malone:
importance: Undecided → Low
tags: added: confusing-ui trivial
Revision history for this message
Curtis Hovey (sinzui) wrote :

I believe that DistroBugTaskCreationStep.validateStep() need to call distribution.has_published_binaries. The message could be: There is no source package in <distro> named "<spn>". Launchpad does not know the names of any <distro> binary packages.

I see this sentence in the current error message?
    If it should be here, <a href="%s">report this as a bug</a>.

Really? Are we saying we think this feature is broken? Should this feature be in beta? Reporting a bug about data will not help the user complete a task. Bugs are about code. We might want the user to ask a question if it were possible to arbitrarily register a source package name. I do not think this is the case though. I think this sentence should be removed.

Changed in launchpad:
assignee: Julian Edwards (julian-edwards) → nobody
milestone: 2.2.2 → none
summary: - There is a package 'xserver-xorg' in Debian
+ Confusing message "There is a no package named 'xserver-xorg' in Debian"
+ when filing a bug
tags: added: filebug-package
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Steve Kowalik (stevenk)
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Steve Kowalik (stevenk)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
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.