PERFORCE change 181582 for review
Garrett Cooper
gcooper at FreeBSD.org
Sat Jul 31 20:33:09 UTC 2010
On Thu, Jul 29, 2010 at 2:23 PM, Julien Laffaye <jlaffaye at freebsd.org> wrote:
> http://p4web.freebsd.org/@@181582?ac=10
>
> Change 181582 by jlaffaye at jlaffaye-chulak on 2010/07/29 21:23:01
>
> - Rework the fetch_archive() function to return a file descriptor of the
> downloaded archive.
> Reading on-the-fly doesn't work if we fetch dependencies: the remote
> server close the connection because we are inactive (in fact we are
> busy downloading the dependency). Reading on-the-fly could work if we
> knew the dependencies, in the proper order, of the package before
> downloading it (thus, download and install the dependencies first).
> - While I'm here, print the progress (percentage) of the dowload.
>
...
> + if (archive_read_open_fd(a, fd, 10240) != ARCHIVE_OK) {
> + warnx("archive_read_open_fd(): %s", archive_error_string(a));
> + retcode = 1;
> + goto cleanup;
Overall change looks good, but why 10240 :)?
-Garrett
More information about the p4-projects
mailing list