In the message on Tue, 16 Jan 2007 11:07:54 +0000, Steve O'Hara-Smith <steve%sohara.org@localhost> wrote: > The latest change to mk/fetch/fetch (adding a setting of fetchdir) > seems to have broken fetch (perhaps only on DragonFly). An empty file gets > generated (no ftp transfer occurs). It's the same on i386 port. The following patch fixes this. Index: fetch =================================================================== RCS file: /usr/cvsup/pkgsrc/mk/fetch/fetch,v retrieving revision 1.7 diff -d -p -u -r1.7 fetch --- fetch 10 Jan 2007 14:31:35 -0000 1.7 +++ fetch 17 Jan 2007 16:37:42 -0000 @@ -189,10 +189,7 @@ if ${TEST} -n "$distinfo"; then Size) ;; # only handle "Size" lines *) continue ;; esac - case "$fetchdir" in - ".") ${TEST} "$d_file" = "($file)" || continue ;; - *) ${TEST} "$d_file" = "($path)" || continue ;; - esac + ${TEST} "$d_file" = "($file)" || continue distsize="$d_size"; distunits="$d_units" break done < $distinfo -- Ryo HAYASAKA <ryoh%jaist.ac.jp@localhost> Japan Advanced Institute of Science and Technology (JAIST)
Attachment:
pgpswe2xpJBqq.pgp
Description: PGP signature