projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fef5a4f
)
Scons: Update compare_versions() to ignore trailing charecters after an int. This...
m5_2.0_beta6
author
Ali Saidi
<saidi@eecs.umich.edu>
Wed, 8 Oct 2008 22:34:19 +0000
(18:34 -0400)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Wed, 8 Oct 2008 22:34:19 +0000
(18:34 -0400)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index f91cb35fef90e35fa6eef55acc7303c1d76870ff..260c025bd4cd5ecf441bcb9adac09f67851492bc 100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-91,7
+91,7
@@
def compare_versions(v1, v2):
if isinstance(v, (list,tuple)):
return v
elif isinstance(v, str):
- return map(
int
, v.split('.'))
+ return map(
lambda x: int(re.match('\d+', x).group())
, v.split('.'))
else:
raise TypeError