summaryrefslogtreecommitdiff
path: root/apt/utils.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-02 16:46:35 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-02 16:46:35 +0200
commit465b19e6ae3c6daeee0841d38ac93e0c19991c13 (patch)
treefe7105c64632ccc9dc22520b6d70a18d5342c97b /apt/utils.py
parent5a6c646ceffab7ce58106eccdccf884b6d332d58 (diff)
parentdd86db9ddb22b43867b5b4dc211f4440dec7aa6a (diff)
downloadpython-apt-465b19e6ae3c6daeee0841d38ac93e0c19991c13.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 * apt/debfile.py: - check if the debfiles provides are in conflict with the systems packages * tests/test_debs/*.deb, tests/test_debfile.py: - add automatic test based on the test debs from gdebi
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)