Subject: Re: Why PKG_RESUME_TRANSFER force to try fetch again?
To: OBATA Akio <obata@lins.jp>
From: Johnny C. Lam <jlam@buildlink.org>
List: tech-pkg
Date: 07/31/2007 11:02:39
OBATA Akio wrote:
> 
> Anyone know why PKG_RESUME_TRANSFERS=yes try to fetch even if
> DISTFILE exists?
> 
> in mk/fetch/fetch.mk, line 130-:
> 
> .for _file_ in ${_ALLFILES}
> .  if empty(PKG_RESUME_TRANSFERS:M[yY][eE][sS]) && \
>      exists(${DISTDIR}/${_file_})
> ${DISTDIR}/${_file_}:
>        @${DO_NADA}
> .  else
> ${DISTDIR}/${_file_}: fetch-check-interactive do-fetch-file error-check
> .  endif
> .endfor

If PKG_RESUME_TRANSFERS=yes, then it's possible that the file existing 
on the local file system is incomplete.  It forces the do-fetch-file 
target to run, which checks the size of the file to determine whether it 
should resume an interrupted fetch.

	Cheers,

	-- Johnny Lam <jlam@pkgsrc.org>