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

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

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

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

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

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

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

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

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, >>

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

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

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

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?