Archive for December, 2005

How to speed up a page

Wednesday, December 7th, 2005

I heard someone mention that the categories page loaded slowly. That’s to be expected. It’s figuring out the last commit in each category. Calculating the number of ports in each category. And it’s doing this for both physical categories and virtual categories. There are about 16000 rows in the ports […]

Are all files deleted?

Sunday, December 4th, 2005

Now that I think about this… I’m sure there is something in the relational integrity to ensure that if a parent is marked as deleted, the children are mark deleted as well. Perhaps I need something to mark parents as active if a child is reactivated. I’ll check. In the meantime….
I […]

Enumerating the ports

Sunday, December 4th, 2005

Tonight I started working on the Deleted port that wasn’t deleted problem tonight. The first step is to create a script that lists all the entries in the ports table. I took an existing script, altered it to meet my needs, and came up with this:
#!/usr/bin/perl -w
#
# $Id: set-broken.pl,v 1.1.2.2 2004/11/27 13:54:09 dan Exp […]

Branch and Platform independant information

Friday, December 2nd, 2005

FreshPorts runs on an i386 machine under FreeBSD 4.11. That means all the information it contains, relates to that Branch (4.11) and that architecture (i386). Moves are underway to make FreshPorts branch and architecture independent.
One of the main bits I needed for this was a way to know the the latest value for […]

Sam Lawrance found a bug!

Thursday, December 1st, 2005

Sam Lawrance found a bug. If a port is deleted, then a file added back in, and then it’s removed, FreshPorts doesn’t know that the port is deleted.
He found this with x11/ruby-gnome. You can see that it is marked as an expired port. On 05 Nov 2005 08:07:45, kris removed it from […]