[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#123856: [patch] search on packages.debian.org now indexes experimental


On Thu, Dec 19, 2002 at 11:31:04PM +0100, Josip Rodin wrote:
> On Thu, Dec 19, 2002 at 10:35:21PM +0100, Christian Hammers wrote:
> > I wondered why my brandnew shiny mysql package in experimental is not
> > shown by the search interface and I guess I've found the reason.
> Actually it's intentional -- I didn't want users to see experimental on
> purpose, due to the fact the links to libc6 etc don't exist/work.

I object! (I surely have no rights to do so but maybe I can
convince you :-))

I guess especially experimental users have a interest in getting as many
as possible users to try their packages. What about letting them see
those packages but give them an extra big fat red warning. 
(isn't the Debian way about letting the admins decide what they want?)



ch@gluck:~$ diff -u /org/packages.debian.org/htmlscripts/pages.pl pages.pl 
--- /org/packages.debian.org/htmlscripts/pages.pl       Fri Dec  6 12:15:12 2002
+++ pages.pl    Thu Dec 19 15:45:44 2002
@@ -156,7 +156,17 @@
                if ($distrib =~ /(contrib|non-free|non-us|experimental)/o) {
                        $package_page .= " [<font color=\"FF0000\">$distrib</font>]\n";
-               $package_page .= "</h1>\n<div><h3><em>$short_desc</em></h3>\n";
+               $package_page .= "</h1>\n";
+               if ($distrib eq "experimental") {
+                       $package_page .= "<div><h3 style='color: red'>".
+                                        "Warning: This version is from the &quot;experimental&quot; distribution ".
+                                        "that means it is likely unstable or buggy and may even cause data loss. ".
+                                        "If you still decide to be brave and install it, you do it on your own risk. ".
+                                        "Please contact the package maintainer in this case and report your experiences ".
+                                        "as this is the reason it was put into experimental.".
+                                        "</h3></div>\n";
+               }
+               $package_page .= "<div><h3><em>$short_desc</em></h3>\n";
                $first = substr($long_desc,0,1);
                $rest = substr($long_desc,1);
                $package_page .= "<p style=\"text-align: justify\"><font size=\"+2\">$first</font>$rest\n";

Reply to: