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

Bug#1031717: UDD/DMD: Use a consistent description for new upstream TODO items.



Package: qa.debian.org
Severity: normal
Tags: patch

Dear Maintainer,

The attached patch makes the description for 'new upstream' Todo list items on DMD consistent.

Currently it shows:
┌──────────────┬────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────┐
│ type         │ source     │ description                                                                                                             │ hide │
├──────────────┼────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────┤
│ new upstream │ netcdf     │ New upstream version available: 4.9.1 (already in experimental, but not in unstable) (currently in unstable: 1:4.9.0-3) │ hide │
├──────────────┼────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────┤
│ new upstream │ pydecorate │ New version available: 0.3.4 (currently in unstable: 0.3.3-1)                                                           │ hide │
└──────────────┴────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────┘

With the patch the description is consistent to improve readability:
┌──────────────┬────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────┐
│ type         │ source     │ description                                                                                                             │ hide │
├──────────────┼────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────┤
│ new upstream │ netcdf     │ New upstream version available: 4.9.1 (already in experimental, but not in unstable) (currently in unstable: 1:4.9.0-3) │ hide │
├──────────────┼────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────┤
│ new upstream │ pydecorate │ New upstream version available: 0.3.4 (currently in unstable: 0.3.3-1)                                                  │ hide │
└──────────────┴────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────┘

Kind Regards,

Bas
>From 7cdc564b8cf301c69ad3484a389bdd30811d5292 Mon Sep 17 00:00:00 2001
From: Bas Couwenberg <sebastic@xs4all.nl>
Date: Tue, 21 Feb 2023 14:16:59 +0100
Subject: Use consistent description for new upstream TODO items.

---
 web/inc/dmd-data.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/inc/dmd-data.rb b/web/inc/dmd-data.rb
index a859ab6..e0a13f3 100755
--- a/web/inc/dmd-data.rb
+++ b/web/inc/dmd-data.rb
@@ -1010,7 +1010,7 @@ and source not in (select source from upload_history where date > (current_date
                         :type => 'new upstream',
                         :source => src,
                         :link => nil,
-                        :description => "New version available",
+                        :description => "New upstream version available",
                         :details => "#{v['upstream'][:version]}#{cursid}" }
       elsif v['upstream'][:status] == :out_of_date_in_unstable
         h = Digest::MD5.hexdigest("#{src}_#{v['upstream'][:version]}")
-- 
2.30.2


Reply to: