[php-apt-parser-maint] r26 - in /branches/des: ChangeLog parse-apt-files.inc

php-apt-parser-maint at lists.alioth.debian.org php-apt-parser-maint at lists.alioth.debian.org
Thu Mar 1 01:11:07 CET 2007


Author: dleidert-guest
Date: Thu Mar  1 01:11:07 2007
New Revision: 26

URL: http://svn.debian.org/wsvn/php-apt-parser/?sc=1&rev=26
Log:
* parse-apt-files.inc:
  - Added some more classes to allow more customization.


Modified:
    branches/des/ChangeLog
    branches/des/parse-apt-files.inc

Modified: branches/des/ChangeLog
URL: http://svn.debian.org/wsvn/php-apt-parser/branches/des/ChangeLog?rev=26&op=diff
==============================================================================
--- branches/des/ChangeLog (original)
+++ branches/des/ChangeLog Thu Mar  1 01:11:07 2007
@@ -1,3 +1,7 @@
+2007-03-01  Daniel Leidert  <daniel.leidert at wgdd.de>, 1.3.4:
+	* parse-apt-files.inc:
+	  - Added some more classes to allow more customization.
+
 2007-02-28  Daniel Leidert  <daniel.leidert at wgdd.de>, 1.3.3:
 	* parse-apt-files.inc:
 	  - Moved the .changes and .build detection into two functions:

Modified: branches/des/parse-apt-files.inc
URL: http://svn.debian.org/wsvn/php-apt-parser/branches/des/parse-apt-files.inc?rev=26&op=diff
==============================================================================
--- branches/des/parse-apt-files.inc (original)
+++ branches/des/parse-apt-files.inc Thu Mar  1 01:11:07 2007
@@ -1,6 +1,6 @@
 <?php
     //////////////////////////////////////////////////////////////////
-    // PHP Apt-file parser, Version 1.3.3
+    // PHP Apt-file parser, Version 1.3.4
     // $Id$
     //
     // The following PHP functions parse Debian APT-repository files
@@ -164,13 +164,16 @@
                 }
                 if ( $chfile !== False )
                 {
-                        print "| <a href=\"" .
+                        print "| <span class=\"" .
+                        $ext .
+                        "\"><a href=\"" .
                         htmlentities($base_url) .
                         htmlentities($dir) .
                         "/" .
                         htmlentities($chfile) .
-                        "\">" . "." . $ext .
-                        "</a>" . "\n";
+                        "\">" . "." .
+                        htmlentities($ext) .
+                        "</a></span>" . "\n";
                     break;
                 }
             }
@@ -232,10 +235,12 @@
                 $srcfields = $sources[$pkg];
 
             print "<span class=\"name\">" .
-                  htmlentities($fields["Package"]) . "</span> " .
+                  htmlentities($fields["Package"]) .
+                  "</span> " .
                   "<span class=\"version\">(" .
                   htmlentities($fields["Version"]) .
-                  parse_section($fields["Section"]) . ")</span>" .
+                  parse_section($fields["Section"]) .
+                  ")</span>" .
                   "\n";
 
             if ( strlen(trim($fields["Description"])) )
@@ -247,20 +252,23 @@
             $archlinks = Array();
             while( list($arch_name, list(, $arch_fields)) = each($archs) )
                 $archlinks[] = "<a href=\"" .
-                    htmlentities($base_url) .
-                    htmlentities($arch_fields["Filename"]) . "\">" .
-                    htmlentities($arch_name) . " (" .
-                    human_format_size($arch_fields["Size"]) . ")</a>";
-            print "Binary for arch <span class=\"archs\">" .
+                               htmlentities($base_url) .
+                               htmlentities($arch_fields["Filename"]) .
+                               "\">" .
+                               htmlentities($arch_name) .
+                               " (" .
+                               human_format_size($arch_fields["Size"]) .
+                               ")</a>";
+            print "<span class=\"linkline\">Binary for arch <span class=\"archs\">" .
                   join(", ", $archlinks) . "</span>\n";
 
             // If sources are available, print out location.
             if ( isset($srcfields["Directory"]) )
             {
-                print "| <a href=\"" .
+                print "| <span class=\"source\"><a href=\"" .
                     htmlentities($base_url) .
                     htmlentities($srcfields["Directory"]) .
-                    "\">Source dir</a>" . "\n";
+                    "\">Source dir</a></span>" . "\n";
 
             }
   
@@ -269,6 +277,8 @@
             // The file extenion for build-log should be changeable. For the
             // moment we set it to the debuild/pdebuild default '.build'.
             chb_file_link_from_directory( $shared_buildlogsdir, "build", $fields, $srcfields );
+            
+            print "</span>";
             
             // Output the package description.
             print "<br/><br/>\n" .




More information about the php-apt-parser-maint mailing list