|
Lines 370-378
class ElogViewer:
Link Here
|
| 370 |
# then we split the string using as pattern / or : to obtain in any |
370 |
# then we split the string using as pattern / or : to obtain in any |
| 371 |
# case |
371 |
# case |
| 372 |
# ( "x11-themes", "haematite-xcursors", "1.0:20091018-195827.log") |
372 |
# ( "x11-themes", "haematite-xcursors", "1.0:20091018-195827.log") |
| 373 |
if not filepath.endswith == ".log": |
373 |
tmpfilepath = re.sub('\.log.*$', '.log', filepath) |
| 374 |
tmpfilepath = re.sub('\.log.*$', '.log', filepath) |
374 |
split_up = re.split(":|" + os.path.sep, tmpfilepath.replace(elogdir + os.path.sep, "")) |
| 375 |
(cat,pn,other) = re.split(":|" + os.path.sep, tmpfilepath.replace(elogdir + os.path.sep, "") ) |
375 |
if len(split_up) < 3: |
|
|
376 |
continue |
| 377 |
(cat, pn, other) = split_up[-3:] |
| 376 |
if sys.version_info[:2] >= (2, 5): |
378 |
if sys.version_info[:2] >= (2, 5): |
| 377 |
date = datetime.strptime(other, "%Y%m%d-%H%M%S.log") |
379 |
date = datetime.strptime(other, "%Y%m%d-%H%M%S.log") |
| 378 |
else: |
380 |
else: |
| 379 |
- |
|
|