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

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Fri Jul 13 00:32:54 CEST 2012


Revision: 18716
          http://gar.svn.sourceforge.net/gar/?rev=18716&view=rev
Author:   chninkel
Date:     2012-07-12 22:32:54 +0000 (Thu, 12 Jul 2012)
Log Message:
-----------
checkpkg: fixed a unicode handling problem

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2012-07-12 14:35:37 UTC (rev 18715)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2012-07-12 22:32:54 UTC (rev 18716)
@@ -247,7 +247,8 @@
           continue
         tag_info=e.tag_info
         if tag_info is not None:
-            tag_info=unicode(tag_info, "utf-8")
+	    if not isinstance(tag_info, unicode):
+	        tag_info=unicode(tag_info, "utf-8")
         error_tag_in_db = m.CheckpkgErrorTag(
             srv4_file=db_stat_objs_by_pkgname[e.pkgname],
             pkgname=e.pkgname,

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