Bug 439275 - yum reget is broken
Summary: yum reget is broken
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: i686
OS: Linux
low
high
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-27 20:28 UTC by Jake Edge
Modified: 2014-01-21 23:02 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-28 07:00:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jake Edge 2008-03-27 20:28:45 UTC
Description of problem:

Was trying to do a F8 -> rawhide update using yum, ran into multiple problems
with being unable to get the right versions of rpm, see
http://fpaste.org/paste/1551 for an example.

Got on fedora-devel on irc and skvidal and i tried various things.  He
eventually gave me a yumRepo.py file that fixed the problem.  

Version-Release number of selected component (if applicable):

it happened with yum.3.2.8 (which is what i started with) and also yum.3.2.13
(which i picked up via yum as we were diagnosing)


How reproducible:

For me, today, very.


Steps to Reproduce:
1. yum update
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Seth Vidal 2008-03-28 06:28:40 UTC
Here's what's happening:
1. a package is being partially downloaded. 
2. yum sees the size of the file is less than what the file's total size should
be and it is keeping the partial download in hope that it can fill up the rest
of it and make a complete rpm
3. The partial download, however, is corrupt for one reason or another.
4. urlgrabber fills up the file the rest of the way, tests it, sees it is
bad/wrong and attempts to try some more. But it can't stop trying to fill it up
eventhough the file is 'full'. This might be considered a bug in urlgrabber but
I think we can work around it in yum by having the verifyPkg() method unlink a
file if:
    a. it fails the checksum test
    b. if the file is >= the expected size of the file.

I will however raise this issue with the urlgrabber maintainer, see if he thinks
it is insane or not.


Comment 2 Seth Vidal 2008-03-28 07:00:04 UTC
and fixed in yum for now. I still wanna know if this is a bug in urlgrabber or
on purpose. :)



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