Opened 13 years ago

Closed 6 months ago

#30736 closed defect (fixed)

Local repository with space in path name won't work

Reported by: dansbox@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.8.0
Component: base Version: 2.0.1
Keywords: Cc:
Port:

Description

I have a local repository, specified in sources.conf as:

file:///Users/dan/Dev/macports/custom-ports

The "Dev" directory is a symbolic link:

/Users/dan/Dev -> Shared/Dev

The "Shared" directory is also a symbolic link:

/Users/dan/Shared -> /Volumes/Shared HFS+/

Note that "Shared HFS+" has a space in the name.

This setup has worked in the past. However, after doing a selfupdate and adding the local repository URL to sources.conf, I get errors. For example, if I try to selfupdate again:

$ -> sudo port -v selfupdate
--->  Updating the ports tree
Synchronizing local ports tree from file:///Users/dan/Dev/macports/custom-ports
couldn't change working directory to "/Volumes/Shared HFS+/Dev/macports/custom-ports/HFS+/Dev/macports/custom-ports": no such file or directory
shell command "/opt/local/bin/portindex /Volumes/Shared HFS+/Dev/macports/custom-ports" returned error 1
Error: updating PortIndex for file:///Users/dan/Dev/macports/custom-ports failed

It looks like something is canonicalizing the path name (which is probably unnecessary), and later the path with a space in it is not escaped properly.

To confirm my hunch, I moved aside the /Users/dan/Dev link and made a copy of my repository that made no use of links. That worked without a hitch.

Change History (1)

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Milestone: MacPorts 2.8.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.