[csw-devel] SF.net SVN: gar:[19822] csw/mgar/gar/v2-yann/lib/python
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Wed Dec 5 21:58:41 CET 2012
Revision: 19822
http://gar.svn.sourceforge.net/gar/?rev=19822&view=rev
Author: chninkel
Date: 2012-12-05 20:58:41 +0000 (Wed, 05 Dec 2012)
Log Message:
-----------
gar/v2-yann: fixed version sorting
Modified Paths:
--------------
csw/mgar/gar/v2-yann/lib/python/inspective_package.py
csw/mgar/gar/v2-yann/lib/python/inspective_package_test.py
Modified: csw/mgar/gar/v2-yann/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2-yann/lib/python/inspective_package.py 2012-12-05 20:51:12 UTC (rev 19821)
+++ csw/mgar/gar/v2-yann/lib/python/inspective_package.py 2012-12-05 20:58:41 UTC (rev 19822)
@@ -318,7 +318,7 @@
# soname version needed are usually displayed sorted by index ...
# but that's not always the case :( so we have to reorder
# the list by index
- binary_info['version needed'].sort(key=lambda m: m['index'])
+ binary_info['version needed'].sort(key=lambda m: int(m['index']))
for version in binary_info['version needed']:
del version['index']
Modified: csw/mgar/gar/v2-yann/lib/python/inspective_package_test.py
===================================================================
--- csw/mgar/gar/v2-yann/lib/python/inspective_package_test.py 2012-12-05 20:51:12 UTC (rev 19821)
+++ csw/mgar/gar/v2-yann/lib/python/inspective_package_test.py 2012-12-05 20:58:41 UTC (rev 19822)
@@ -165,6 +165,7 @@
def test_ParseElfdumpLineVersionNeeded(self):
line = '[13] SUNW_0.9 [ INFO ]'
expected = {
+ 'index': '13',
'version': 'SUNW_0.9',
'soname': None
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list