[library-web] handle gnome://...?min= parameter with more than two parts in the version
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] handle gnome://...?min= parameter with more than two parts in the version
- Date: Fri, 7 May 2010 08:17:01 +0000 (UTC)
commit a037bcdd2ddda5d4a2602bfb78dc23eda770c603
Author: Frédéric Péters <fpeters 0d be>
Date: Fri May 7 10:16:29 2010 +0200
handle gnome://...?min= parameter with more than two parts in the version
src/lgo.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 04bcc5f..5bd533d 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -245,6 +245,9 @@ class Lgo(App):
params = [x.split('=') for x in params.split('&')]
try:
min_version = [x[1] for x in params if x[0] == 'min'][0]
+ # number versions used as ftp.gnome.org directories are
+ # limited to two numbers
+ min_version = '.'.join(min_version.split('.')[:2])
except IndexError:
min_version = None
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]