something's not right

Ryan Schmidt ryandesign at
Mon Nov 24 06:30:47 PST 2014

On Nov 24, 2014, at 8:23 AM, Dan Johnson wrote:

> See this:
> I found that after making a mirror the default, 'port -d selfupdate' restored '' as the default, so I had to re-edit 'sources.conf' to undo that "helpful fix" before I could continue.
> That's probably a MacPorts bug. Someone should report it. ;)

It is unexpected that you listed both and in your sources.conf since they both (should) provide the same thing. You should only list one of them. You can leave the other, commented out, if you like.

Still, the file responsible for changing the sources.conf is src/ It begins with the following comment block:

# $Id: 119629 2014-05-02 20:09:11Z cal at $
# Upgrade sources.conf for a given prefix (passed as the first and only
# argument).
# For an rsync: repository, if it is the standard MacPorts one and not
# already tagged, then make it default, if another wasn't already default.
# For a file:// respository, if it is an svn checkout from the MacPorts
# server, then make it default if another hasn't already been tagged.

So, clearly, the intention was that if you already specified a default, which you did, then it should not change anything else to be the default. So the fact that it did change something else to be default does sound like a bug.

More information about the macports-users mailing list