[mirrorbrain-commits] r7997 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Sat, 13 Mar 2010 01:32:53 -0000
Author: poeml
Date: Sat Mar 13 02:32:53 2010
New Revision: 7997

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7997&view=rev
Log:
mod_mirrorbrain: Mirror lists now include a link to a PGP signature, if available.

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=7997&r1=7996&r2=7997&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Sat Mar 13 02:32:53 2010
_at_@ -2273,13 +2273,12 @@
                 ap_rprintf(r, "  <li><a href=\"http://%s%s.md5\">MD5 Hash</a>: <tt>%s</tt> "
                               "</li>\n", r->hostname, r->uri, hashbag->md5);
 
-            /* XXX we could link to the signature
             if (hashbag->pgp) {
-                ap_rputs("    <signature mediatype=\"application/pgp-signature\">\n", r);
-                ap_rputs(hashbag->pgp, r);
-                ap_rputs("    </signature>\n", r);
-            }
-            */
+                /* contrary to the hashes, we don't have a handler for .asc files, because
+                 * the database always only gets a signature when one already exists on-disk */
+                ap_rprintf(r, "  <li>PGP signature <a href=\"http://%s%s.asc\">available</a> "
+                              "</li>\n", r->hostname, r->uri);
+            }
         }
         ap_rputs("  </ul>\n", r);
 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sat Mar 13 2010 - 01:32:54 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT