Bug 171923 - repodata checksum of comps.xml makes it impossible to change comps in tree
Summary: repodata checksum of comps.xml makes it impossible to change comps in tree
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-27 20:51 UTC by Jeremy Katz
Modified: 2014-01-21 22:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-12 15:22:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeremy Katz 2005-10-27 20:51:28 UTC
Since the repodata contains a sha1sum of comps.xml, it's not possible to change
it without also updating the sum.  This is something that is somewhat likely to
cause confusion/problems for people.  At least, it did for me.  

Upside of the sha1sum is that we can be more certain that the file is in fact
fully downloaded. 

At the bare minimum, we need to change things so that the error message given
for this case is clear instead of just the generic "repo setup problem"

Comment 1 Seth Vidal 2005-10-27 21:55:54 UTC
I'm kinda confused - what's the error here? That if you don't rebuild the
metadata and/or change repomd.xml that the new comps.xml doesn't get picked up?

is that the problem?

it might not be unreasonable to think about doing a --group-file-only option on
createrepo that takes an existing repo and just updates the groupfile specified.



Comment 2 Jeremy Katz 2005-10-27 21:58:19 UTC
Just tweaking the comps file, which previously required doing nothing else, now
requires running createrepo or manually updating the sha1sum in repomd.xml. 
Otherwise, your install fails -- currently with just a catch-all "problem
setting up repo" error

Comment 3 Seth Vidal 2005-10-27 22:04:56 UTC
well the last time tweaking the comps file required nothing was yum 2.0.X

2.2 and 2.4 have required rebuilding the repomd.xml


Comment 4 Jeremy Katz 2005-10-27 22:06:18 UTC
Yes, you'll note this is filed against anaconda for which it _is_ a major change ;)

Comment 5 Seth Vidal 2005-10-28 05:56:19 UTC
What code should I be looking at to see how you've implemented this?
when I check the output from w/i yum I see:

Getting group metadata
Adding group file from repository: local
buildroots.xml            100% |=========================| 3.6 kB    00:00
file:///home/skvidal/tmp/local/repodata/buildroots.xml: [Errno -1] Metadata file
does not match checksum
Trying other mirror.
Error: failure: repodata/buildroots.xml from local: [Errno 256] No more mirrors
to try.


which is being raised up from repos.py in the Repository class.
Urlgrabber is complaining b/c it's finding the wrong checksum for the groups
file it has downloaded.

Is this what you're seeing?


Comment 6 Red Hat Bugzilla 2007-08-21 05:20:52 UTC
User pnasrat's account has been closed


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