aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebdate10
1 files changed, 9 insertions, 1 deletions
diff --git a/debdate b/debdate
index e602f63..20916d0 100755
--- a/debdate
+++ b/debdate
@@ -38,7 +38,10 @@ ERR_MSG = "Today is {isodate} of the Debianless Age"
class DebDate:
- def __init__(self, distro_info_file='/usr/share/distro-info/debian.csv'):
+ def __init__(
+ self,
+ distro_info_file='/usr/share/distro-info/debian.csv',
+ nameless_age=datetime.date(1993, 8, 1)):
self.releases = []
try:
with open(distro_info_file) as fp:
@@ -59,6 +62,11 @@ class DebDate:
self.releases.sort(key=lambda x: x[0], reverse=True)
if not self.releases:
self.releases = RELEASES
+ if nameless_age:
+ self.releases.append((
+ nameless_age,
+ 'Nameless Age'
+ ))
def get_release(self, day):
data = {}