Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 11542

Summary: portage does not resume downloads correctly when source is not on ibiblio
Product: Portage Development Reporter: Will Reid <rlreid13>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED DUPLICATE    
Severity: trivial CC: mholzer, sgtphou
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Will Reid 2002-12-03 12:35:02 UTC
After killing a fetch of a file that is not located in
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/
the file will not resume when a fetch/download is attempted again.  the file 
is just reported as "The file is already fully retrieved; nothing to do."
Below is an example using vanilla-sources which currently isn't on ibiblio, 
but only http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2

mercury root # emerge info
Portage 2.0.44 (default-x86-1.4, gcc-3.2, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-lolo-r10_pre6 i586 GenuineIntel
USE="x86 oss 3dnow apm arts avi crypt encode gif gpm imlib java jpeg kde 
libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis o
pengl pdflib png qt qtmt quicktime spell svga truetype xml2 xmms xv zlib gdbm 
berkdb slang readline sdl tcpd ssl perl python -X -gtk
 -gnome -KDE -cups -alsa pam"
ARCH="x86"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -
ffast-math -fforce-addr -falign-functions=4"
CXXFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer -fprefetch-loop-
arrays -ffast-math -fforce-addr -falign-functions=4"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/conf
ig /usr/kde/3/share/config /opt/jakarta/tomcat/conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME=""
AUTOCLEAN="no"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"

mercury root # emerge -f sys-kernel/vanilla-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/vanilla-sources-2.4.20 to /
>>> Downloading 
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-
2.4.20.tar.bz2
--13:07:04--  
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-
2.4.20.tar.bz2
           => `/usr/portage/distfiles/linux-2.4.20.tar.bz2'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:07:13 ERROR 404: Not Found.

>>> Downloading http://www.kernel.org/pub/linux/kernel/v2.4/linux-
2.4.20.tar.bz2
--13:07:13--  http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2
           => `/usr/portage/distfiles/linux-2.4.20.tar.bz2'
Resolving www.kernel.org... done.
Connecting to www.kernel.org[204.152.189.116]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27,421,046 [application/x-bzip2]

 0% 
[                                                                              
                                    ] 47,436         2.33K/s  ETA 3:11:28Killed
mercury root # emerge -f sys-kernel/vanilla-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/vanilla-sources-2.4.20 to /
>>> Resuming download...
>>> Downloading 
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-
2.4.20.tar.bz2
--13:07:55--  
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-
2.4.20.tar.bz2
           => `/usr/portage/distfiles/linux-2.4.20.tar.bz2'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

mercury root # cd /usr/portage/distfiles/
mercury distfiles # ls -lh
total 48K
-rw-r--r--    1 root     root          46K Dec  4 13:07 linux-2.4.20.tar.bz2
mercury distfiles # wget -c http://www.kernel.org/pub/linux/kernel/v2.4/linux-
2.4.20.tar.bz2
--13:11:07--  http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2
           => `linux-2.4.20.tar.bz2'
Resolving www.kernel.org... done.
Connecting to www.kernel.org[204.152.189.116]:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 27,421,046 (27,285,282 to go) [application/x-bzip2]

 0% 
[                                                                              
                                    ] 178,796        1.75K/s  ETA 4:13:49
Comment 1 FieldySnuts 2002-12-07 10:21:18 UTC
*** Bug 11723 has been marked as a duplicate of this bug. ***
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2002-12-11 16:14:00 UTC

*** This bug has been marked as a duplicate of 11392 ***