mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Adding support for no-proxy option in URLs (patch)
@ 2013-02-26  9:47 Dennis.Herbrich
  2013-02-26  9:56 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis.Herbrich @ 2013-02-26  9:47 UTC (permalink / raw)
  To: ptxdist

Greetings!

I was missing the --no-proxy option for wget to download sources
from a server in the LAN. Admittedly that's not something one *should*
need, but find a simple patch attached, anyway, in case someone
needs it. Let's hope my MUA doesn't munge it too badly.

Best regards,
Dennis Herbrich

Hytera Mobilfunk GmbH
Fritz-Hahne-Str. 7
31848 Bad Münder/ Germany
Abteilung E

Tel.: + 49 (0) 5042 998 339
Fax: + 49 (0) 5042 998 305
mailto:dennis.herbrich@hytera.de

------------------------------------------------------------
Geschäftsführer / President:  Matthias Klausing,  Sitz der Gesellschaft / 
Company's Place of Business: Bad Muender,  Registereintrag / Commercial 
Register No.  Amtsgericht / Local Court Hannover: HRB  100300, 
Umsatzsteuer-Identifikationsnummer (USt-IdNr.) / VAT Identification No.: 
DE 115 447 987,  Elektro-Altgeräte Register (EAR) / WEEE Register No.: DE 
187 048 87

-----
Add support for wget --no-proxy option in URLs.

--- ptxdist-2013.01.90/scripts/lib/ptxd_make_get.sh.orig        2013-02-26 
11:33:30.000000000 +0100
+++ ptxdist-2013.01.90/scripts/lib/ptxd_make_get.sh     2013-02-26 
11:34:32.000000000 +0100
@@ -30,6 +30,9 @@
                        no-check-certificate)
                                opts[${#opts[@]}]="--${opt}"
                                ;;
+                       no-proxy)
+                               opts[${#opts[@]}]="--${opt}"
+                               ;;
                        *)
                                ptxd_bailout "invalid option '${opt}' to 
${FUNCNAME}"
                                ;;
@@ -112,6 +115,7 @@
 #
 # valid options:
 # - no-check-certificate       don't check server certificate (https 
only)
+# - no-proxy                   don't use proxy server even if defined
 #
 ptxd_make_get() {
        local -a argv

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] Adding support for no-proxy option in URLs (patch)
  2013-02-26  9:47 [ptxdist] Adding support for no-proxy option in URLs (patch) Dennis.Herbrich
@ 2013-02-26  9:56 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2013-02-26  9:56 UTC (permalink / raw)
  To: ptxdist; +Cc: Dennis.Herbrich


[-- Attachment #1.1: Type: text/plain, Size: 2490 bytes --]

On 02/26/2013 10:47 AM, Dennis.Herbrich@hytera.de wrote:
> Greetings!
> 
> I was missing the --no-proxy option for wget to download sources
> from a server in the LAN. Admittedly that's not something one *should*
> need, but find a simple patch attached, anyway, in case someone
> needs it. Let's hope my MUA doesn't munge it too badly.

Use git send-email to send patches and please add Your Signed-of-by to
the patch. See comment inline...
> 
> Best regards,
> Dennis Herbrich
> 
> Hytera Mobilfunk GmbH
> Fritz-Hahne-Str. 7
> 31848 Bad Münder/ Germany
> Abteilung E
> 
> Tel.: + 49 (0) 5042 998 339
> Fax: + 49 (0) 5042 998 305
> mailto:dennis.herbrich@hytera.de
> 
> ------------------------------------------------------------
> Geschäftsführer / President:  Matthias Klausing,  Sitz der Gesellschaft / 
> Company's Place of Business: Bad Muender,  Registereintrag / Commercial 
> Register No.  Amtsgericht / Local Court Hannover: HRB  100300, 
> Umsatzsteuer-Identifikationsnummer (USt-IdNr.) / VAT Identification No.: 
> DE 115 447 987,  Elektro-Altgeräte Register (EAR) / WEEE Register No.: DE 
> 187 048 87
> 
> -----
> Add support for wget --no-proxy option in URLs.
> 
> --- ptxdist-2013.01.90/scripts/lib/ptxd_make_get.sh.orig        2013-02-26 
> 11:33:30.000000000 +0100
> +++ ptxdist-2013.01.90/scripts/lib/ptxd_make_get.sh     2013-02-26 
> 11:34:32.000000000 +0100
> @@ -30,6 +30,9 @@
>                         no-check-certificate)

What about:
no-check-certificate|no-proxy)

Marc
>                                 opts[${#opts[@]}]="--${opt}"
>                                 ;;
> +                       no-proxy)
> +                               opts[${#opts[@]}]="--${opt}"
> +                               ;;
>                         *)
>                                 ptxd_bailout "invalid option '${opt}' to 
> ${FUNCNAME}"
>                                 ;;
> @@ -112,6 +115,7 @@
>  #
>  # valid options:
>  # - no-check-certificate       don't check server certificate (https 
> only)
> +# - no-proxy                   don't use proxy server even if defined
>  #
>  ptxd_make_get() {
>         local -a argv
> 


-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-26  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-26  9:47 [ptxdist] Adding support for no-proxy option in URLs (patch) Dennis.Herbrich
2013-02-26  9:56 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox