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

Bug#703938: udd: please ignore no bug, patch and version difference with Ubuntu



And of course I forgot the attachment.
Sorry for the noise.

Quoting Simon Chopin (2013-03-26 19:40:25)
> tags 703938 +patch
> thanks
> 
> Quoting Lucas Nussbaum (2013-03-26 09:15:47)
> > Indeed, good idea. In case someone is reading this and want to try
> > hacking DMD, this is a fairly easy thing to fix.
> 
> I took a shot at it, but I have no idea how to test this patch. Beware,
> this is the first time I write something in Ruby :-)
From c750d36744d8bb6d1e3bf3cb6b4cd59e9975f3b0 Mon Sep 17 00:00:00 2001
From: Simon Chopin <chopin.simon@gmail.com>
Date: Tue, 26 Mar 2013 19:29:50 +0100
Subject: [PATCH] Don't show packages without diff, patch nor bug in the
 Ubuntu tab.

Thanks to Ideki Yamane for the idea.
---
 web/dmd.cgi |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/dmd.cgi b/web/dmd.cgi
index bd819f4..66d99bb 100755
--- a/web/dmd.cgi
+++ b/web/dmd.cgi
@@ -365,6 +365,8 @@ if cgi.params != {}
           if UDDData.compare_versions(udevnb, sid) == 1
             udev = "<a href=\"http://ubuntudiff.debian.net/?query=-FPackage+#{src}\";><span class=\"prio_high\" title=\"Newer version in Ubuntu\">#{udev}</span></a>"
           end
+        elsif bugs == 0 and patches == 0
+          next
         end
       end
       udev += "<br>sec:&nbsp;#{du["#{UDEV}-security"][:version]}" if du["#{UDEV}-security"]
-- 
1.7.10.4


Reply to: