Re: registry with multiple portfiles

2017-07-17 Thread db
On 17 Jul 2017, at 10:38, Joshua Root wrote: > Don't delete anything from the database, its contents are correct (and have > been the whole time). You can delete the portfiles that are in a directory > named after a port (or version of a port) that is not installed. Those should > have been del

Re: registry with multiple portfiles

2017-07-17 Thread Joshua Root
On 2017-7-17 17:53 , db wrote: On 13 Jul 2017, at 21:50, db wrote: On 13 Jul 2017, at 18:08, Joshua Root wrote: Fixed in master: I understand that there's no additional name field for subports in the

Re: registry with multiple portfiles

2017-07-17 Thread db
On 13 Jul 2017, at 21:50, db wrote: > On 13 Jul 2017, at 18:08, Joshua Root wrote: >> Fixed in master: >> > I understand that there's no additional name field for subports in the > registry and that they

Re: registry with multiple portfiles

2017-07-13 Thread db
On 13 Jul 2017, at 18:08, Joshua Root wrote: > Fixed in master: > I understand that there's no additional name field for subports in the registry and that they have the same hash. But I don't get how the

Re: registry with multiple portfiles

2017-07-13 Thread Joshua Root
On 2017-7-13 20:28 , db wrote: On 13 Jul 2017, at 03:37, Joshua Root wrote: I don't know. Theoretically if the script doesn't print something then a row in the ports table matched it. Here's an extract of my filter, reg portfiles dir + db row(s). It doesn't make sense as port dir it's diffe

Re: registry with multiple portfiles

2017-07-13 Thread db
On 13 Jul 2017, at 03:37, Joshua Root wrote: > I don't know. Theoretically if the script doesn't print something then a row > in the ports table matched it. Here's an extract of my filter, reg portfiles dir + db row(s). It doesn't make sense as port dir it's different from the actual port in db

Re: registry with multiple portfiles

2017-07-12 Thread Joshua Root
On 2017-7-13 11:01 , db wrote: On 11 Jul 2017, at 23:35, Joshua Root wrote: The attached script will find any Portfiles that are not referenced by any installed port, and are thus safe to delete. It uses the same check that is done during uninstall so I'm still not sure how they are getting l

Re: registry with multiple portfiles

2017-07-12 Thread db
On 11 Jul 2017, at 23:35, Joshua Root wrote: > The attached script will find any Portfiles that are not referenced by any > installed port, and are thus safe to delete. It uses the same check that is > done during uninstall so I'm still not sure how they are getting left behind. Thanks for the

Re: registry with multiple portfiles

2017-07-11 Thread Joshua Root
On 2017-7-12 07:24 , db wrote: On 11 Jul 2017, at 18:40, db wrote: While writing the portfile for py-ipaddr in vim I saved it and stopped the process, then installed/uninstalled the port and made some corrections in the portfile, repeat. I tried this with another port while monitoring its r

Re: registry with multiple portfiles

2017-07-11 Thread db
On 11 Jul 2017, at 18:40, db wrote: > While writing the portfile for py-ipaddr in vim I saved it and stopped the > process, then installed/uninstalled the port and made some corrections in the > portfile, repeat. I tried this with another port while monitoring its registry folder and it create

Re: registry with multiple portfiles

2017-07-11 Thread db
On 11 Jul 2017, at 19:21, Joshua Root wrote: >> I think I might explain this case — but not others. While writing the >> portfile for py-ipaddr in vim I saved it and stopped the process, then >> installed/uninstalled the port and made some corrections in the portfile, >> repeat. Does it sound p

Re: registry with multiple portfiles

2017-07-11 Thread Rainer Müller
On 2017-07-11 18:40, db wrote: > On 11 Jul 2017, at 16:16, Joshua Root wrote: >> How do the files differ? Is one not referenced in the registry database? > > port cat shows the right file. I think I might explain this case — but not > others. While writing the portfile for py-ipaddr in vim I sav

Re: registry with multiple portfiles

2017-07-11 Thread Joshua Root
On 2017-7-12 02:40 , db wrote: On 11 Jul 2017, at 16:16, Joshua Root wrote: How do the files differ? Is one not referenced in the registry database? port cat shows the right file. port cat always uses the copy in the ports tree. That might be the same as one or neither of the copies in the

Re: registry with multiple portfiles

2017-07-11 Thread db
On 11 Jul 2017, at 16:16, Joshua Root wrote: > How do the files differ? Is one not referenced in the registry database? port cat shows the right file. I think I might explain this case — but not others. While writing the portfile for py-ipaddr in vim I saved it and stopped the process, then ins

Re: registry with multiple portfiles

2017-07-11 Thread Joshua Root
On 2017-7-11 23:24 , db wrote: On 11 Jul 2017, at 14:50, Joshua Root wrote: On 2017-7-11 21:09 , db wrote: Is it normal or expected to have multiple portfiles for the same port in the registry? When multiple versions of the port are installed, yes. And when having just one? $ tree /opt/lo

Re: registry with multiple portfiles

2017-07-11 Thread db
On 11 Jul 2017, at 14:50, Joshua Root wrote: > On 2017-7-11 21:09 , db wrote: >> Is it normal or expected to have multiple portfiles for the same port in the >> registry? > When multiple versions of the port are installed, yes. And when having just one? $ tree /opt/local/var/macports/registry/p

Re: registry with multiple portfiles

2017-07-11 Thread Joshua Root
On 2017-7-11 21:09 , db wrote: Is it normal or expected to have multiple portfiles for the same port in the registry? When multiple versions of the port are installed, yes. - Josh

registry with multiple portfiles

2017-07-11 Thread db
Is it normal or expected to have multiple portfiles for the same port in the registry?