Opened 16 years ago

Closed 16 years ago

#19235 closed defect (fixed)

port provides nonexistent-path produces wrong error

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.0
Component: base Version: 1.8.0
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

If I call "port provides" on a nonexistent path, the error message shows the wrong path.

$ port provides /a/b/c/d/e/f/g
/a/g does not exist.

Change History (2)

comment:1 Changed 16 years ago by blb@…

It looks like CompatFileNormalize() (in trunk/base/src/pextlib1.0/compat.c#L168) may need a bit of work, as it can get confusing with other bits as well:

port provides /
/// is a directory.

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Resolution: fixed
Status: newclosed
Version: 1.7.11.8.0

Fixed in r49347.

Note: See TracTickets for help on using tickets.