aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-05-27 12:22:16 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-05-27 12:22:16 +0200
commitf849293780267d8fe8408eab2fac784d31d4baab (patch)
tree5bf15d214c006da927976498a91f787e0a0df47f
parentc8345be8af86ae12d12e3d9a70e74e75a176e857 (diff)
Add a nameless age before version 0.01 (aproximated) and buzz
-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 = {}