summaryrefslogtreecommitdiff
path: root/apt/utils.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-02 14:50:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-02 14:50:52 +0200
commit03ce5718b828ade3940a8dd6c57a639f0d853cfc (patch)
tree7ca419cb5d6eee52c3302757ee8d40fb40a3b1cb /apt/utils.py
parenta90b26aad2824d4bd224586cdf14c0ad21059ac3 (diff)
parent0c4bbfa36f36d42cc3d700e58d531e05ba898e0e (diff)
downloadpython-apt-03ce5718b828ade3940a8dd6c57a639f0d853cfc.tar.gz
merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port the
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly
Diffstat (limited to 'apt/utils.py')
-rw-r--r--apt/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt/utils.py b/apt/utils.py
index 80ba6d65..4b3da39f 100644
--- a/apt/utils.py
+++ b/apt/utils.py
@@ -33,6 +33,9 @@ def get_maintenance_end_date(release_date, m_months):
support_end_year = (release_date.year + years +
(release_date.month + months)/12)
support_end_month = (release_date.month + months) % 12
+ if support_end_month == 0:
+ support_end_month = 12
+ support_end_year -= 1
return (support_end_year, support_end_month)