How to recover from wrong port naming at time of 1st commit?

Joshua Root jmr at macports.org
Wed Dec 10 23:56:13 PST 2014


On 2014-12-11 18:49 , Marko Käning wrote:
> Hi maintainers,
> 
> how do I best recover from erroneously committing a new portfile [1] under a wrong name?
> As I don’t want to cause trouble for MacPorts’ port database I want to verify whether
> the following workflow is correct:
> 
>  1) Create a new port kcm-baloo-advanced (being a copy of baloo-kcm-advanced)
>  2) Changing baloo-kcm-advanced into obsolete and replaced_by kcm-baloo-advanced
>  3) Commit both at once

Yes, that would be best.

> I think simply renaming the port’s folder by
> ---
> $ svn mv baloo-kcm-advanced kcm-baloo-advanced
> $ svn ci
> ---
> might not be a safe alternative...

It's perfectly safe, it just doesn't give users who installed it under
the old name an automated update path. (I assume you would edit the
portfile to change the name between the move and the commit.)

- Josh


More information about the macports-dev mailing list