AIUI, the following script is run to set up the user’s environment after the installer copies in all the payload files:
https://github.com/macports/macports-base/blob/master/portmgr/dmg/postflight.in#L90 Craig > On Jan 29, 2017, at 9:13 AM, Barry <[email protected]> wrote: > > I have been using the .pkg to reinstall MacPorts. I guess that does not check. > > Barry > > Barry > > >> On 29 Jan 2017, at 02:52, Daniel J. Luke <[email protected]> wrote: >> >> I think only the pkg installers do that - and they're supposed to not edit >> the $PATH if $prefix is already in there. >> >> (ie if you upgrade using `port selfupdate` I don't think you have that >> problem). >> >> Or am I mistaken? >> >>>> On Jan 28, 2017, at 4:56 PM, Barry <[email protected]> wrote: >>>> On 28 Jan 2017, at 16:37, Christopher Jones <[email protected]> >>>> wrote: >>>> Hi, >>>> >>>> It would be better yet if whatever it is that does this first checks to >>>> see in the path it is about to add is already in the users PATH, and does >>>> not add it again if already there… >>> >>> That would be an improvement. >>> >>> I would also like a way to say never edit my .bash_profile. >>> Maybe a comment line specially formated. >>> >>> # MacPorts: no-edit-path >>> >>> Barry >>> >>>> Chris >>>> >>>>> On 28 Jan 2017, at 4:31 pm, Barry Scott <[email protected]> wrote: >>>>> >>>>> I want to be able to stop MacPorts Installation from editing my >>>>> .bash_profile. >>>>> As it happens I already set all the env var that are needed my self. >>>>> >>>>> Is there a “do-not-edit-bash-profile” settings somewhere? >>>>> >>>>> So far I have 3 sets of the settings in the same file. >>>>> >>>>> Barry >> >> -- >> Daniel J. Luke >> >> >> >
