If the needed source file doesn't exist in DISTDIR, then size to download is reported correctly, but if the download is incomplete, emerge -pv tells there are 0KB to download. Reproducible: Always Steps to Reproduce: 1. try emerge -pv about something that isn't in DISTDIR 2. put an empty file (or an incomplete download) instead of source one 3. call again emerge -pv Actual Results: 1) macula root # emerge -pv mozilla-firefox These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/mozilla-firefox-1.0_pre -debug -debug +gnome +gtk2 +gtk2 -ipv6 +java +java -ldap -mozdevelop -moznoxft -moznoxft -mozxmlterm +truetype -xinerama -xinerama +xprint 31,637 kB Total size of downloads: 31,637 kB 2) macula root # touch /usr/portage/distfiles/firefox-1.0PR-source.tar.bz2 macula root # ll /usr/portage/distfiles/firefox-1.0PR-source.tar.bz2 -rw-r--r-- 1 root root 0 Sep 27 20:50 /usr/portage/distfiles/firefox-1.0PR-source.tar.bz2 3) macula root # emerge -pv mozilla-firefox These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/mozilla-firefox-1.0_pre -debug -debug +gnome +gtk2 +gtk2 -ipv6 +java +java -ldap -mozdevelop -moznoxft -moznoxft -mozxmlterm +truetype -xinerama -xinerama +xprint 0 kB Total size of downloads: 0 kB At this point this information is obviously wrong Expected Results: report user that download file is incomplete/unusable as does with emerge -pvf. Side note: even with "-f" filesize is not checked. I don't think it's relevant, but here it is: Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1) ================================================================= System uname: 2.6.8.1 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.tiscali.nl/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.mirror.sdv.fr http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.switch.ch/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa apm arts avi berkdb bitmap-fonts cddb cdparanoia cdr crypt cups dga directfb doc dv dvd dvdr encode esd f77 fbcon flac fmod foomaticdb ftp gdbm ggi gif gnome gpm gstreamer gtk gtk2 guile imlib java jpeg kde libg++ libwww live mad mikmod mmx mng motif mozilla moznoirc moznomail mpeg ncurses nls oggvorbis opengl oracle oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Putting a hold on feature requests for portage as they are drowning out the bugs. Most of these features should be available in the next major version of portage. But for the time being, they are just drowning out the major bugs and delaying the next version's progress. Any bugs that contain patches and any bugs for etc-update or dispatch-conf can be reopened. Sorry, I'm just not good enough with bugzilla. ;)
Pretty sure this is fixed by now.
This was fixed in portage-2.1 for bug #116796.
Who is supposed to close this bug report, then?
Reopening for duping.
*** This bug has been marked as a duplicate of bug 116796 ***