Summary: | emerge don't give an error message if the /usr/portage/distfiles/xyz-0.9.8.tar.bz2 ist not correct | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maurel <guy.j.maurel> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | chriswhite, detlef |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Maurel
2004-04-29 01:13:51 UTC
Test Case: 1) emerge -pf ftp to get a listing of places to download the ftp package from. 2) use wget to get the file. 3) Transfer that file to /tmp for now. 4) Create a file with nano/vi/cat/echo that says the following: This is a test. 5) mv that file to /usr/portage/distfiles with the same name as the file downloaded in step 2 6) emerge ftp 7) emerge should compalin about a corrupted file oops, forgot the rest: 8) Just to make sure, move the file from step 3 to /usr/portage/distfiles, making sure it's replaced. 9) emerge ftp and emerge should not complain. Results of the test case for me: bash-2.05b# emerge ftp Calculating dependencies ...done! >>> emerge (1 of 1) net-ftp/ftp-0.17-r3 to / >>> Resuming download... >>> Downloading http://mirrors.tds.net/gentoo/distfiles/netkit-ftp-0.17.tar.gz --04:42:37-- http://mirrors.tds.net/gentoo/distfiles/netkit-ftp-0.17.tar.gz => `/usr/portage/distfiles/netkit-ftp-0.17.tar.gz' mirrors.tds.net をDNSに問いあわせています... 216.170.153.145 mirrors.tds.net[216.170.153.145]:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 206 Partial Content 長さ: 53,934 (のこり53,918) [application/x-gzip] 100%[====================================>] 53,934 182.87K/s 04:42:38 (182.84 KB/s) - `/usr/portage/distfiles/netkit-ftp-0.17.tar.gz' を保存しました [53934/53934] !!! File is corrupt or incomplete. (Digests do not match) >>> our recorded digest: 94441610c9b86ef45c4c6ec609444060 >>> your file's digest: 618f0fa0da136e870ff64cf781e77dda !!! File does not exist: /usr/portage/distfiles//netkit-ftp-0.17.tar.gz One note I may add is that portage here tries to resume the file. If your computer does not have internet access, that may be the issue. Please let me know by running this test case with the output. Also: sys-apps/portage-2.0.50-r6 * Is my version of portage. The fetched=1 is necessary to resume aborted downloads. If you don't have internet access at the box in general I't probably an idea to change FETCHCOMMAND and RESUMECOMMAND in make.conf to "echo trying to download ${URI}" so portage will just print the URL instead of trying to fetch it. |