1 Mar 2008 01:47
FETCH_OUTPUT_ARGS only used for resumed transfers?
Brian de Alwis <brian.de.alwis <at> usask.ca>
2008-03-01 00:47:19 GMT
2008-03-01 00:47:19 GMT
I have been trying to use FETCH_CMD=curl as curl comes with a default set of certificates and thus a good candidate for fetching files using https. But I've encountered a few problems and in the process of trying to get it to work, I've found the description of FETCH_OUTPUT_ARGS to be unclear, and also found that the example using wget in the pkgsrc guide doesn't actually work. curl, by default, sends its output to stdout. curl can be directed to save the content to an explicitly specified file using '-o filename'. mk/fetch/fetch describes FETCH_OUTPUT_ARGS as: # FETCH_OUTPUT_ARGS # These options specify the name of the local file # that will hold the contents of the fetched file. Does that mean that the options in FETCH_OUTPUT_ARGS should also encode the name of the local file? From looking at the example in the pkgsrc guide and the mk/fetch/fetch code, I think this is better worded as: # FETCH_OUTPUT_ARGS # These options are used to specify the name of the local file # that will hold the contents of the fetched file. Unfortunately the example using wget in the pkgsrc guide is incorrect as FETCH_OUTPUT_ARGS is listed as: > FETCH_OUTPUT_ARGS= -O -nc These options are reversed, I think, as they cause the fetched content(Continue reading)
OK, committed :)
RSS Feed