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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Dec 6 10:25:08 CET 2012


Revision: 19827
          http://gar.svn.sourceforge.net/gar/?rev=19827&view=rev
Author:   wahwah
Date:     2012-12-06 09:25:07 +0000 (Thu, 06 Dec 2012)
Log Message:
-----------
checkpkg: better deal with 'maybe unicode' pkgmap

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

Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py	2012-12-06 09:22:49 UTC (rev 19826)
+++ csw/mgar/gar/v2/lib/python/package_checks.py	2012-12-06 09:25:07 UTC (rev 19827)
@@ -503,7 +503,10 @@
   pkgmap_paths = [x["path"] for x in pkgmap]
   for pkgmap_path in pkgmap_paths:
     try:
-      path_str = str(pkgmap_path)
+      if type(pkgmap_path) is unicode:
+        path_str = pkgmap_path.encode("utf-8")
+      else:
+        path_str = str(pkgmap_path)
       if re.search(ARCH_RE, path_str):
         reasons_to_be_arch_specific.append((
             "archall-with-arch-paths",

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