[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40067: Use --no-verbose wget option when not running in a terminal



Title: GitLab

richard pushed to branch main at The Tor Project / Applications / RBM

Commits:

  • b5e5b04a
    by Nicolas Vigier at 2024-01-24T10:24:19+01:00
    Bug 40067: Use --no-verbose wget option when not running in a terminal
    
    Use the `--no-verbose` option when stdout is not a tty. We avoid setting
    the option when `getting_id` is set, in order to have constant
    `input_file_id` when `urlget` is being used inside the `exec` script in
    `input_files`.
    

2 changed files:

Changes:

  • doc/options_misc.asc
    ... ... @@ -21,6 +21,9 @@ abbrev_length::
    21 21
             This option sets the length of the abbreviated commits, when
    
    22 22
             using the +abbrev+ option.
    
    23 23
     
    
    24
    +isatty::
    
    25
    +        This option is true when stdout is connected to a tty.
    
    26
    +
    
    24 27
     tar::
    
    25 28
             Use this options instead of 'tar' in build scripts when you want
    
    26 29
             to create deterministic tar files. This options set tar arguments
    

  • lib/RBM/DefaultConfig.pm
    ... ... @@ -151,6 +151,7 @@ our %default_config = (
    151 151
         debug         => 0,
    
    152 152
         compress_tar  => 'gz',
    
    153 153
         version       => "[%- exit_error('No version specified for ' _ project); -%]",
    
    154
    +    isatty        => sub { -t STDOUT },
    
    154 155
     ####
    
    155 156
     ####
    
    156 157
     ####
    
    ... ... @@ -577,7 +578,7 @@ set -e
    577 578
         END;
    
    578 579
         -%]
    
    579 580
     tmpfile="\$(mktemp -p [% shell_quote(rbm_tmp_dir) %])"
    
    580
    -wget -O"\$tmpfile" [% shell_quote(c("URL")) %]
    
    581
    +wget[% IF !c("getting_id") && !c("isatty") %] --no-verbose[% END %] -O"\$tmpfile" [% shell_quote(c("URL")) %]
    
    581 582
     mv -f "\$tmpfile" [% shell_quote(dest_dir _ "/" _ c("filename")) %]
    
    582 583
     URLGET
    
    583 584
         sig_ext => [ qw(gpg asc sig) ],
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits