[csw-devel] SF.net SVN: gar:[12478] csw/mgar/gar/v2/lib/python

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 9 22:36:43 CET 2011


Revision: 12478
          http://gar.svn.sourceforge.net/gar/?rev=12478&view=rev
Author:   wahwah
Date:     2011-01-09 21:36:43 +0000 (Sun, 09 Jan 2011)

Log Message:
-----------
checkpkg: Better tag info for libraries checks

Don't output square brackets and apostrophes in tag_info, since they
cause problems in gar.  Using no quoting, and commas as a separator.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/package_checks.py
    csw/mgar/gar/v2/lib/python/package_checks_test.py

Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py	2011-01-09 21:36:05 UTC (rev 12477)
+++ csw/mgar/gar/v2/lib/python/package_checks.py	2011-01-09 21:36:43 UTC (rev 12478)
@@ -984,7 +984,7 @@
       error_mgr.ReportError(
           "non-uniform-lib-versions-in-package",
           "sonames=%s"
-          % (sonames))
+          % (",".join(sonames)))
       messenger.Message(
           "Package %s contains shared libraries, and their soname "
           "versions are not in sync: %s.  This means that "

Modified: csw/mgar/gar/v2/lib/python/package_checks_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks_test.py	2011-01-09 21:36:05 UTC (rev 12477)
+++ csw/mgar/gar/v2/lib/python/package_checks_test.py	2011-01-09 21:36:43 UTC (rev 12478)
@@ -1406,7 +1406,7 @@
     self.pkg_data = neon_stats[0]
     self.error_mgr_mock.ReportError(
         'non-uniform-lib-versions-in-package',
-        "sonames=['libneon.so.26', 'libneon.so.27']")
+        "sonames=libneon.so.26,libneon.so.27")
 
 
 class TestCheckSharedLibraryNamingPolicyBerkeley(CheckpkgUnitTestHelper, unittest.TestCase):


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