21954564 Userland pkglint needs tweak for FOSS evaluation project
authorJohn Beck <John.Beck@Oracle.COM>
Thu, 24 Sep 2015 12:49:21 -0700
changeset 4952 8e5c57e2792a
parent 4951 8ac3d1ff666a
child 4953 0c9477f5bdd7
21954564 Userland pkglint needs tweak for FOSS evaluation project
tools/python/pkglint/userland.py
--- a/tools/python/pkglint/userland.py	Fri Oct 16 04:21:46 2015 -0700
+++ b/tools/python/pkglint/userland.py	Thu Sep 24 12:49:21 2015 -0700
@@ -560,7 +560,7 @@
                         if not any(
                             f
                             for f in action.attrlist("fmri")
-                            if "/cffi-" in pkg.fmri.PkgFmri(f).pkg_name):
+                            if "/cffi-" in pkg.fmri.PkgFmri(f, "5.12").pkg_name):
                                 continue
                         if action.attrs["type"] in ("require", "require-any"):
                                 cffi_require = action
@@ -599,7 +599,7 @@
                     return
 
                 cffi_incorp_ver = str(pkg.fmri.PkgFmri(
-                    cffi_incorp.attrs["fmri"]).version.release)
+                    cffi_incorp.attrs["fmri"], "5.12").version.release)
                 if cffi_incorp_ver != cffi_version:
                         engine.error(_("package %(pkg)s depends on CFFI, but "
                             "incorporates it at the wrong version (%(actual)s "