<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dear Mojca,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Root privileges worked using vim. The new ports are shown in the port search. Thanks a lot.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Rajdeep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 16, 2019 at 3:09 PM Mojca Miklavec <<a href="mailto:mojca@macports.org">mojca@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Rajdeep,<br>
<br>
I'm not sure to what extent my suggestion helps. If the file is in<br>
fact locked, this won't do it, but I find it strange that this would<br>
ever happen (if it happened to me, I would probably reboot the<br>
machine). If using admin privileges won't help, maybe ask if someone<br>
can help you on our IRC channel?<br>
<br>
Mojca<br>
<br>
On Tue, 16 Apr 2019 at 09:34, Mojca Miklavec <<a href="mailto:mojca@macports.org" target="_blank">mojca@macports.org</a>> wrote:<br>
><br>
> On Tue, 16 Apr 2019 at 09:12, Rajdeep Bharati wrote:<br>
> ><br>
> > Hello,<br>
> > For testing a new Portfile in my local repository, the Macports guide says that I need to edit the sources.conf file. However, this file is locked and I'm not able to unlock it.<br>
><br>
> Did you try with root privileges?<br>
><br>
> I don't know what editor you used, but<br>
> sudo vim /opt/local/etc/macports/sources.conf<br>
> (or some other editor of your choice) should work.<br>
><br>
> If I open the file with TextMate and modify & change it, I get a<br>
> prompt to enter the password and then I can save the file.<br>
><br>
> (The best way is probably to clone the full macports-ports repository<br>
> and point sources.conf to your clone. Or at least that's what I do.<br>
> You need to make sure to generate the PortIndex in any case.)<br>
</blockquote></div>