Bug 701887 - createrepo --update traceback
Summary: createrepo --update traceback
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: createrepo
Version: 5.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 08:03 UTC by Karel Srot
Modified: 2013-03-14 20:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-14 20:11:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Karel Srot 2011-05-04 08:03:18 UTC
Description of problem:

Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 722, in ?
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 638, in main
    mdgen.doPkgMetadata(directories)
  File "/usr/share/createrepo/genpkgmetadata.py", line 385, in doPkgMetadata
    current = self.writeMetadataDocs(filematrix[mydir], mydir, current)
  File "/usr/share/createrepo/genpkgmetadata.py", line 250, in writeMetadataDocs
    nodes = self.oldData.getNodes(file)
AttributeError: SplitMetaDataGenerator instance has no attribute 'oldData'


Version-Release number of selected component (if applicable):
createrepo-0.4.11-3.el5

How reproducible:
always

Steps to Reproduce:
1. yumdownloader ksh zsh
2. mkdir repo1 repo2
3. mv ksh*.rpm repo1 && mv zsh*.rpm repo2
4. #Creating the test repo"
   createrepo --split -u 'http://createrepo.test.com/repo1' repo1 repo2
5. # udpate test repo
   createrepo --split --update -u 'http://createrepo.test.com/repo2' repo1 repo2
  
Actual results:
traceback

Comment 1 RHEL Program Management 2011-05-31 15:45:03 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2011-09-23 00:52:27 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 Zdeněk Pavlas 2012-06-18 14:44:51 UTC
I have a backport ready.  However, split && update does NOT work correctly upstream yet:

#FIXME - this only actually works for single dirs. It will only
# function for the first dir passed to --split, not all of them
# this needs to be fixed by some magic in readMetadata.py
# using opts.pkgdirs as a list, I think.

Comment 5 RHEL Program Management 2012-07-24 09:38:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 7 James Antill 2013-03-14 20:11:01 UTC
For a long time almost everyone has been using a much newer version of createrepo than the one we ship with RHEL-5 anyway, so at this point in RHEL-5 backports seems like a waste of time.


Note You need to log in before you can comment on or make changes to this bug.