[csw-maintainers] Checkpgk error when having too long names

Maciej (Matchek) Bliziński maciej at opencsw.org
Sun Jul 8 16:54:41 CEST 2012


2012/7/8 Peter Bonivart <bonivart at opencsw.org>
>
> That's OK but I would like to get a proper error for it, not that
> checkpkg collapses. :) Maybe GAR could tell me if it changes stuff on
> the fly or maybe we could put it in mgar.

One failure mode I would guess is that one check in package_checks.py
is passing an int instead of a unicode or a string object.

Try adding this patch and recreating the problem:

diff --git a/gar/v2/lib/python/checkpkg_lib.py
b/gar/v2/lib/python/checkpkg_lib.py
index 17f07aa..e319ec8 100644
--- a/gar/v2/lib/python/checkpkg_lib.py
+++ b/gar/v2/lib/python/checkpkg_lib.py
@@ -249,7 +249,7 @@ class CheckpkgManagerBase(SqlobjectHelperMixin):
             srv4_file=db_stat_objs_by_pkgname[e.pkgname],
             pkgname=e.pkgname,
             tag_name=e.tag_name,
-            tag_info=e.tag_info,
+            tag_info=unicode(e.tag_info),
             msg=e.msg,
             os_rel=sqo_os_rel,
             catrel=sqo_catrel,

What extra error tag do you get after adding this patch?


More information about the maintainers mailing list