[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Added --convert-file-only handling (!456)
From: |
Archit Pandey |
Subject: |
Re: wget2 | Added --convert-file-only handling (!456) |
Date: |
Tue, 05 Nov 2019 15:56:27 +0000 |
Archit Pandey commented on a discussion on src/wget.c:
https://gitlab.com/gnuwget/wget2/merge_requests/456#note_240345888
> - wget_buffer_reset(&buf); // reuse buffer
> - while (*p2) {
> - if (*p2++ == '/')
> -
> wget_buffer_memcat(&buf, "../", 3);
> - }
> - wget_buffer_strcat(&buf, dir);
> -
> - wget_info_printf(" %.*s -> %s\n",
> (int) url->len, url->p, linkpath); // no translation
> - wget_info_printf(" -> %s\n",
> buf.data); // no translation
> - } else {
> - // insert absolute URL
> - wget_info_printf(" %.*s -> %s\n",
> (int) url->len, url->p, buf.data); // no translation
> - }
> + if(config.convert_links)
> + convert_link_whole(filename,
> conversion, url, &buf);
> + else if(config.convert_file_only)
Shall I set exit status when both options are encountered? Or print error?
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/456#note_240345888
You're receiving this email because of your account on gitlab.com.
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/01
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/05
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/05
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/05
- Re: wget2 | Added --convert-file-only handling (!456),
Archit Pandey <=
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/05
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/05
- Re: wget2 | Added --convert-file-only handling (!456), Tim Rühsen, 2019/11/06