[gnumeric] news-to-html: teach this about ubuntu bugs.



commit 4a379d1a30b6ebe22481a005e3e43cbc5fe9fc6c
Author: Morten Welinder <terra gnome org>
Date:   Mon Sep 21 15:51:29 2015 -0400

    news-to-html: teach this about ubuntu bugs.

 tools/news-to-html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tools/news-to-html b/tools/news-to-html
index 4defdc1..213640d 100644
--- a/tools/news-to-html
+++ b/tools/news-to-html
@@ -12,6 +12,7 @@ $version2 =~ s/^(\d+\.\d+)\..*/$1/;
 my $bug_prefix = "https://bugzilla.gnome.org/show_bug.cgi?id=";;
 my $debian_bug_prefix = "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=";;
 my $redhat_bug_prefix = "https://bugzilla.redhat.com/show_bug.cgi?id=";;
+my $ubuntu_bug_prefix = "https://bugs.launchpad.net/ubuntu/+bug/";;
 
 my $state = 0;
 my $who = undef;
@@ -104,6 +105,7 @@ sub add_to_item {
 
     $txt =~ s{Debian\s+\#(\d\d\d\d\d+)}{Debian <a href=\"$debian_bug_prefix$1\"\>Bug $1</a>}g;
     $txt =~ s{Redhat\s+\#(\d\d\d\d\d+)}{Redhat <a href=\"$redhat_bug_prefix$1\"\>Bug $1</a>}g;
+    $txt =~ s{Ubuntu\s+\#(\d\d\d\d\d+)}{Ubuntu <a href=\"$ubuntu_bug_prefix$1\"\>Bug $1</a>}g;
     $txt =~ s{\#(\d\d\d\d\d+)}{<a href=\"$bug_prefix$1\"\>Bug $1</a>}g;
 
     $item .= "\n\t      $txt";


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