- add option to createrepo config to collapse libc.so.6 requires
authorSeth Vidal <skvidal@fedoraproject.org>
Fri, 11 Jun 2010 14:44:40 +0000 (10:44 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Fri, 11 Jun 2010 14:44:40 +0000 (10:44 -0400)
- this will only work with yum 3.2.28 and beyond

createrepo/__init__.py

index 41e8db83404aee13f128d12989afb6f7cac6523d..120e1b0267557dde2f727b5668d5c38e16135398 100644 (file)
@@ -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