Package: muon / 4:5.8.0-1

no-canonical-support.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Patch out Canonical support information used for Ubuntu - We're Debian
 While in theory this could be managed with dpkg-vendor and some IFDEFery,
 it's just easier to patch it out.  This code hasn't changed in years, so the
 patch shouldn't take any effort to maintain.
Author: Scott Kitterman <scott@kitterman.com>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791875
Forwarded: not-needed
Last-Update: 2016-07-14

--- a/src/DetailsTabs/MainTab.cpp
+++ b/src/DetailsTabs/MainTab.cpp
@@ -179,19 +179,19 @@ void MainTab::refresh()
     m_packageShortDescLabel->setText(m_package->shortDescription());
 
     m_descriptionBrowser->setText(m_package->longDescription());
-
+    // Patch out Ubuntu only support information
     // Append a newline to give a bit of separation for the support string
-    m_descriptionBrowser->append(QString());
-    if (m_package->isSupported()) {
-        QDateTime endDate = m_package->supportedUntil();
-        m_descriptionBrowser->append(i18nc("@info Tells how long Canonical, Ltd. will support a package",
-                                        "Canonical provides critical updates for %1 until %2.",
-                                        m_package->name(), endDate.date().toString()));
-    } else {
-        m_descriptionBrowser->append(i18nc("@info Tells how long Canonical, Ltd. will support a package",
-                                        "Canonical does not provide updates for %1. Some updates "
-                                        "may be provided by the Ubuntu community.", m_package->name()));
-    }
+    //m_descriptionBrowser->append(QString());
+    //if (m_package->isSupported()) {
+    //    QDateTime endDate = m_package->supportedUntil();
+    //    m_descriptionBrowser->append(i18nc("@info Tells how long Canonical, Ltd. will support a package",
+    //                                    "Canonical provides critical updates for %1 until %2.",
+    //                                    m_package->name(), endDate.date().toString()));
+    //} else {
+    //    m_descriptionBrowser->append(i18nc("@info Tells how long Canonical, Ltd. will support a package",
+    //                                    "Canonical does not provide updates for %1. Some updates "
+    //                                    "may be provided by the Ubuntu community.", m_package->name()));
+    //}
 }
 
 void MainTab::emitSetInstall()