Merge lp:~gesha/linaro-ci/update-pattern-matching into lp:linaro-ci

Proposed by Georgy Redkozubov
Status: Merged
Merged at revision: 90
Proposed branch: lp:~gesha/linaro-ci/update-pattern-matching
Merge into: lp:linaro-ci
Diff against target: 21 lines (+2/-2)
1 file modified
find_latest.py (+2/-2)
To merge this branch: bzr merge lp:~gesha/linaro-ci/update-pattern-matching
Reviewer Review Type Date Requested Status
Fathi Boudra Approve
Linaro Infrastructure Pending
Review via email: mp+121332@code.launchpad.net

Description of the change

This branch updates patterns to be used with django-based snapshots.linaro.org

To post a comment you must log in.
Revision history for this message
Fathi Boudra (fboudra) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'find_latest.py'
--- find_latest.py 2012-05-30 16:37:10 +0000
+++ find_latest.py 2012-08-26 14:25:20 +0000
@@ -34,7 +34,7 @@
3434
35def find_builds(data):35def find_builds(data):
36 found = []36 found = []
37 pattern = re.compile('<td><a href="\d+/">(?P<buildstamp>\d+)/</a>')37 pattern = re.compile('<td><a href="(/.*/)?\d+/?">(?P<buildstamp>\d+)/?</a>')
38 for line in data.splitlines():38 for line in data.splitlines():
39 search = pattern.search(line)39 search = pattern.search(line)
40 if search:40 if search:
@@ -43,7 +43,7 @@
4343
44def _get_filename(filelist):44def _get_filename(filelist):
45 match = None45 match = None
46 tgzpattern = re.compile('<a href="(?P<tgzfilename>[\w\-]+(?!\.config)\.tar\.gz)"')46 tgzpattern = re.compile('<a href=".*">(?P<tgzfilename>[\w\-]+(?!\.config)\.tar\.gz)</a>')
47 for match in tgzpattern.finditer(filelist):47 for match in tgzpattern.finditer(filelist):
48 pass48 pass
49 if match is None:49 if match is None:

Subscribers

People subscribed via source and target branches