Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 386114 Details for
Bug 503904
app-portage/elogv-0.7.6.1-r1 - elogv: ValueError: too many values to unpack
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make log filename parsing more robust
0001-Make-log-filename-parsing-more-robust-Gentoo-bug-503.patch (text/plain), 1.22 KB, created by
Sebastian Pipping
on 2014-10-06 02:46:41 UTC
(
hide
)
Description:
Make log filename parsing more robust
Filename:
MIME Type:
Creator:
Sebastian Pipping
Created:
2014-10-06 02:46:41 UTC
Size:
1.22 KB
patch
obsolete
>From 0e4036a152c8aa14db214302417237a8781d1f84 Mon Sep 17 00:00:00 2001 >From: Sebastian Pipping <sebastian@pipping.org> >Date: Mon, 6 Oct 2014 04:42:06 +0200 >Subject: [PATCH] Make log filename parsing more robust (Gentoo bug 503904) > >--- > elogv | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/elogv b/elogv >index 435d9ad..acd41de 100755 >--- a/elogv >+++ b/elogv >@@ -370,9 +370,11 @@ class ElogViewer: > # then we split the string using as pattern / or : to obtain in any > # case > # ( "x11-themes", "haematite-xcursors", "1.0:20091018-195827.log") >- if not filepath.endswith == ".log": >- tmpfilepath = re.sub('\.log.*$', '.log', filepath) >- (cat,pn,other) = re.split(":|" + os.path.sep, tmpfilepath.replace(elogdir + os.path.sep, "") ) >+ tmpfilepath = re.sub('\.log.*$', '.log', filepath) >+ split_up = re.split(":|" + os.path.sep, tmpfilepath.replace(elogdir + os.path.sep, "")) >+ if len(split_up) < 3: >+ continue >+ (cat, pn, other) = split_up[-3:] > if sys.version_info[:2] >= (2, 5): > date = datetime.strptime(other, "%Y%m%d-%H%M%S.log") > else: >-- >2.1.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 503904
: 386114