From 404a70c0e70c42c83b8566e1b3558b9ede83330f Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Fri, 11 Jun 2010 10:44:40 -0400 Subject: [PATCH] - add option to createrepo config to collapse libc.so.6 requires - this will only work with yum 3.2.28 and beyond --- createrepo/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 41e8db8..120e1b0 100644 --- a/createrepo/__init__.py +++ b/createrepo/__init__.py @@ -103,6 +103,7 @@ class MetaDataConfig(object): self.repo_tags = []# strings, forwhatever they are worth self.read_pkgs_list = None # filepath/name to write out list of pkgs # read in this run of createrepo + self.collapse_glibc_requires = True class SimpleMDCallBack(object): def errorlog(self, thing): @@ -472,6 +473,7 @@ class MetaDataGenerator: po._baseurl = baseurl po._reldir = reldir po._packagenumber = self.current_pkg + po._collapse_libc_requires = self.conf.collapse_glibc_requires for r in po.requires_print: if r.startswith('rpmlib('): self.rpmlib_reqs[r] = 1 -- 2.34.1