createrepo fails with file name too long

Solution In Progress - Updated -

Issue

  • When I run createrepo –g *comps*xml/opt/linux/rhel/rh6.5_x86_64_2.3/LoadBalancer, I’m getting this error:
  File "/usr/share/createrepo/genpkgmetadata.py", line 291, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 269, in main
    mdgen.doRepoMetadata()
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 1073, in doRepoMetadata
    mdcontent = self._createRepoDataObject(self.conf.groupfile, 'group_gz')
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 884, in _createRepoDataObject
    (csum, outfn) = checksum_and_rename(outfn, self.conf.sumtype)
  File "/usr/lib/python2.6/site-packages/createrepo/utils.py", line 170, in checksum_and_rename
    os.rename(fn_path, csum_path)
OSError: [Errno 36] File name too long

Environment

  • Red Hat Enterprise Linux 6
  • createrepo-0.9.9-18.el6.noarch

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content