Mention distro-info-data dependency.

This commit is contained in:
Luis Guzman 2022-04-06 11:02:38 -05:00
parent 8ce21fe8d2
commit 0207425fed
4 changed files with 55 additions and 41 deletions

View file

@ -1,6 +1,5 @@
diff -Nru source/python/distro_info.py source_b/python/distro_info.py
--- source/python/distro_info.py 2019-03-07 13:33:56.000000000 -0600
+++ source_b/python/distro_info.py 2021-12-17 15:44:54.509722643 -0600
--- source/python/distro_info.py 2021-11-04 15:27:37.000000000 -0600
+++ source/python/distro_info.py_fix 2022-04-06 10:20:39.217365952 -0500
@@ -1,3 +1,4 @@
+# Copyright (C) 2021, Trisquel GNU/Linux developers <trisquel-devel@listas.trisquel.info>
# Copyright (C) 2009-2012, Benjamin Drung <bdrung@debian.org>
@ -15,17 +14,17 @@ diff -Nru source/python/distro_info.py source_b/python/distro_info.py
import csv
import datetime
@@ -83,7 +84,7 @@
@@ -100,7 +101,7 @@
class DistroInfo(object):
class DistroInfo:
"""Base class for distribution information.
- Use DebianDistroInfo or UbuntuDistroInfo instead of using this directly.
+ Use DebianDistroInfo or TrisquelDistroInfo instead of using this directly.
"""
def __init__(self, distro):
@@ -237,14 +238,14 @@
codename in ["unstable", "testing", "stable", "oldstable"])
@@ -311,14 +312,14 @@
]
-class UbuntuDistroInfo(DistroInfo):
@ -34,34 +33,37 @@ diff -Nru source/python/distro_info.py source_b/python/distro_info.py
+ """provides information about Trisquel's distributions"""
def __init__(self):
- super(UbuntuDistroInfo, self).__init__("Ubuntu")
+ super(TrisquelDistroInfo, self).__init__("Trisquel")
- super().__init__("Ubuntu")
+ super().__init__("Trisquel")
def lts(self, date=None, result="codename"):
- """Get latest long term support (LTS) Ubuntu distribution based on the
+ """Get latest long term support (LTS) Trisquel distribution based on the
given date."""
given date."""
if date is None:
date = self._date
@@ -262,7 +263,7 @@
@@ -337,7 +338,7 @@
return "LTS" in distros[0].version
def supported(self, date=None, result="codename"):
- """Get list of all supported Ubuntu distributions based on the given
+ """Get list of all supported Trisquel distributions based on the given
date."""
date."""
if date is None:
date = self._date
@@ -270,12 +271,3 @@
if date <= x.eol or
(x.eol_server is not None and date <= x.eol_server)]
@@ -347,15 +348,3 @@
if date <= x.eol or (x.eol_server is not None and date <= x.eol_server)
]
return distros
-
- def supported_esm(self, date=None, result="codename"):
- """Get list of all ESM supported Ubuntu distributions based on the
- given date."""
- given date."""
- if date is None:
- date = self._date
- distros = [self._format(result, x) for x in self._avail(date)
- if x.eol_esm is not None and date <= x.eol_esm]
- distros = [
- self._format(result, x)
- for x in self._avail(date)
- if x.eol_esm is not None and date <= x.eol_esm
- ]
- return distros