[library-web] Do not skip intermediary version if it's set as version_max
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Do not skip intermediary version if it's set as version_max
- Date: Fri, 3 Dec 2010 18:15:37 +0000 (UTC)
commit 540970599b6820329eb1b1f46b6c5b1352fc0a22
Author: Frédéric Péters <fpeters 0d be>
Date: Fri Dec 3 19:13:18 2010 +0100
Do not skip intermediary version if it's set as version_max
src/lgo.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 3f53f7e..5cfb90a 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -203,7 +203,8 @@ class Lgo(App):
if self.config.version_max and version_cmp(r, self.config.version_max) > 0:
continue
- if i < len(releases)-1 and releases[i+1].startswith(re.match(r'\d+\.\d+\.', r).group()):
+ if i < len(releases)-1 and releases[i+1].startswith(re.match(r'\d+\.\d+\.', r).group()) and \
+ not r == self.config.version_max:
# next release has the same major.minor version number, so skip
# this one and get the newer one later
logging.debug('skipping release %s, not the last in serie' % r)
@@ -212,7 +213,8 @@ class Lgo(App):
if int(r.split('.')[1]) % 2 == 1:
# odd release, development, skip unless this is the current
# development serie
- if not releases[-1].startswith(re.match(r'\d+\.\d+\.', r).group()):
+ if not releases[-1].startswith(re.match(r'\d+\.\d+\.', r).group()) and \
+ not r == self.config.version_max:
logging.debug('skipping release %s, not the last in serie' % r)
continue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]