[csw-devel] SF.net SVN: gar:[18696] csw/mgar/gar/v2/lib/python/checkpkg_lib.py
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Jul 10 14:18:20 CEST 2012
Revision: 18696
http://gar.svn.sourceforge.net/gar/?rev=18696&view=rev
Author: dmichelsen
Date: 2012-07-10 12:18:20 +0000 (Tue, 10 Jul 2012)
Log Message:
-----------
mGAR v2: Fix tag info detection
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-10 11:16:32 UTC (rev 18695)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py 2012-07-10 12:18:20 UTC (rev 18696)
@@ -245,11 +245,14 @@
if e.pkgname not in db_stat_objs_by_pkgname:
logging.warning("Not saving an error for %s.", e.pkgname)
continue
+ tag_info=e.tag_info
+ if tag_info is not None:
+ 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,
tag_name=e.tag_name,
- tag_info=unicode(e.tag_info, "utf-8"),
+ tag_info=tag_info,
msg=e.msg,
os_rel=sqo_os_rel,
catrel=sqo_catrel,
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