Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27268 - emerge -Dupf crashes because --fetchonly + --pretend tries to verify _not_ downloaded files
Summary: emerge -Dupf crashes because --fetchonly + --pretend tries to verify _not_ do...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 00:19 UTC by Uwe Hartmann
Modified: 2011-10-30 22:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hartmann 2003-08-25 00:19:47 UTC
When I try to get a List of files, which should be downloaded, emerge stops
after printing the first block of URLs because it will verify the downloaded file.
But it doesn't work because the --pretend switch, the file wasn't downloaded at all.

Reproducible: Always
Steps to Reproduce:
1. emerge -pf <ebuild, where the source is not in distfiles>
Actual Results:  
0 08:59:36 strandsand root # emerge -pfDu world
Calculating world dependencies ...done!

ftp://ftp.tu-clausthal.de/pub/linux/gentoo//distfiles/fontconfig-2.2.1.tar.gz 
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/distfiles/fontconfig-2.2.1.tar.gz
 ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror//distfiles/fontconfig-2.2.1.tar.gz  http://fontconfig.org/release/fontconfig-2.2.1.tar.gz 
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1951, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1176, in merge
    retval=portage.doebuild(y,"fetch",myroot,edebug,("--pretend" in
myopts),fetchonly=1)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1734, in doebuild
    if not digestcheck(checkme, ("strict" in features)):
  File "/usr/lib/python2.2/site-packages/portage.py", line 1484, in digestcheck
    return digestCheckFiles(myfiles, mydigests, basedir, "src_uri")
  File "/usr/lib/python2.2/site-packages/portage.py", line 1402, in digestCheckFiles
    if strict:
NameError: global name 'strict' is not defined

Expected Results:  
print out a list of all files to be downloaded, either with or without URL's.

Perhaps switching off checksum-testing for not present files would help.

1 09:08:02 strandsand root # emerge info
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i586 AMD-K6(tm)-III Processor
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg gnome libg++
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib directfb gdbm berkdb slang readline arts tetex aalib nas svga ggi tcltk
java mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt
kde motif opengl mozilla gphoto2 ldap cdr scanner 3dfx acpi acpi4linux amd
apache2 bots cjk curl dga fbcon gd imap innodb joystick kerberos krb4 maildir
matroska mozcalendar mpi music oav pic plotutils samba sasl snmp tiff usb v4l
voodoo3 wmf Xaw3d xml xvid"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"^
FEATURES="sandbox ccache"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-08-25 12:50:25 UTC
fixed in cvs.