On Fri, 2007-12-14 at 22:57 +0100, Frank Lichtenheld wrote: > On Fri, Dec 14, 2007 at 10:37:53PM +0100, Franklin PIAT wrote: > > On Fri, 2007-12-14 at 17:12 +0100, Frank Lichtenheld wrote: > > > On Fri, Dec 14, 2007 at 11:42:19AM +0100, martin f krafft wrote: > > > The idea of making packages.d.o appearance and behaviour > > > configurable via cookies is on my "to be considered" list for > > > quite a while already, [..]
> > BTW, it would be nice if distributions shipping the same version > > could be grouped visually. > > Patches welcome. Sounds like a nice idea but someone would have to > come up with the HTML and CSS... I've worked on a solution to "group visually" the sources shipping the same version in packages.d.o. I've recently implemented something similar for my own needs in my site, you can have a look : http://sysinf0.klabs.be/usr/lib/debootstrap/scripts/potato Doing something similar for packages.d.o would require to change the layout to something like : +---------------------------------------------------------------------+ | Package **ddccontrol** : a program to control monitor parameters | +--------------------+---------+-------+---------+------+------+------+ | | alpha | amd64 | arm | hppa | i386 | ia64 | +--------------------+---------+-------+---------+------+------+------+ | sarge (oldstable) | 0.4.2-1 | n.a | 0.4.2-1 | n.a | 0.4.2-1+b1 | +--------------------+---------+-------+---------+------+------+------+ | lenny (stable) | 0.4.2-3 | n.a | 0.4.2-3 | +--------------------+---------+-------+---------+------+------+------+ | sid (unstable) | 9.99 | +--------------------+---------+-------+---------+------+------+------+ Cells with the same version would be be merged and/or have the same background color. Such presentation would be a problem for "provided by:" links, like for http://packages.debian.org/linux-image-2.6 In order to implement this, I'm actually parsing the SQL results twice : - in the first pass, I simply count how many time I find a given version (in associative array). - then I sort the array, and assign a color (when count > 1). - Finally, I actually display the results. In my case, the cost is very low, because the MySQL results are cached by PHP anyway. I could try to implement this, but I would like to have some feedback from you before I actually try to implement it (especially since I not so comfortable with perl). - What do you think about the idea / the presentation. - What about having the same description for all packages ? - Any pitfall in sight ? Franklin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

