Ticket #590 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

PackageDepSpec cannot be created if package name ends with a hyphen

Reported by: ColdWind Owned by:
Priority: MinorRelease Milestone: EAPI 0 (PMS)
Component: core/paludis Version: 0.26.2
Keywords: Cc:
Blocked By: Blocking: #611
Distribution: Gentoo

Description

PackageDepSpec? cannot be created if package name ends with a hyphen. PMS specifies doesn't restrict this case.

Attachments

pds-final-hyphens.patch (2.7 kB) - added by ColdWind 3 months ago.
pds-final-hyphens.patch

Change History

Changed 3 months ago by ColdWind

pds-final-hyphens.patch

Changed 3 months ago by ciaranm

Doesn't this get =cat/foo----2 wrong?

Changed 3 months ago by ColdWind

Nope. =========== These packages will be installed:

* my.shiny_category-/mypkg-----::local :0-. [N 0-r0] <target> ===========

Changed 3 months ago by ciaranm

Doesn't this get =cat/foo---- wrong, in that it doesn't throw the right exception?

Changed 2 months ago by ciaranm

  • blocking set to 611

Changed 2 months ago by ciaranm

So I don't forget... It's a single hyphen that breaks. Multiple hyphens works.

Changed 2 months ago by ciaranm

It has come to my attention that I don't have a frickin' clue what that bit of code is playing at. So I think it's time to rewrite the damned thing and remove most of the duplication between elike and user parsing.

Changed 2 months ago by ciaranm

  • status changed from new to closed
  • resolution set to fixed

975ba82125af / d5e5befd325a

Note: See TracTickets for help on using tickets.