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

Commits:

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) ],