projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69be0a8
)
ovs-bugtool.in: Do not assign a lambda expression, use a def.
author
Gurucharan Shetty
<guru@ovn.org>
Mon, 6 Jun 2016 06:56:51 +0000
(23:56 -0700)
committer
Gurucharan Shetty
<guru@ovn.org>
Thu, 9 Jun 2016 18:04:46 +0000
(11:04 -0700)
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
utilities/bugtool/ovs-bugtool.in
patch
|
blob
|
history
diff --git
a/utilities/bugtool/ovs-bugtool.in
b/utilities/bugtool/ovs-bugtool.in
index
9744ca4
..
ecf01f6
100755
(executable)
--- a/
utilities/bugtool/ovs-bugtool.in
+++ b/
utilities/bugtool/ovs-bugtool.in
@@
-288,7
+288,10
@@
def file_output(cap, path_list, newest_first=False, last_mod_time=None):
if last_mod_time is None or s.st_mtime >= last_mod_time:
path_entries.append((path, s))
- mtime = lambda(path, stat): stat.st_mtime
+ def mtime(arg):
+ (path, stat) = arg
+ return stat.st_mtime
+
path_entries.sort(key=mtime, reverse=newest_first)
for p in path_entries:
if check_space(cap, p[0], p[1].st_size):