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

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40075: Create destination directory when creating input_files with `content`



Title: GitLab

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

Commits:

  • 05e32169
    by Nicolas Vigier at 2024-03-18T13:52:40+01:00
    Bug 40075: Create destination directory when creating input_files with `content`
    

1 changed file:

Changes:

  • lib/RBM.pm
    ... ... @@ -1001,6 +1001,8 @@ sub input_files {
    1001 1001
             my $file_gpg_id = gpg_id($t->('file_gpg_id'));
    
    1002 1002
             if (input_file_need_dl($input_file, $t, $fname, $action)) {
    
    1003 1003
                 if ($t->('content')) {
    
    1004
    +                my $dname = dirname("$proj_out_dir/$name");
    
    1005
    +                make_path($dname) unless -d $dname;
    
    1004 1006
                     path("$proj_out_dir/$name")->spew_utf8($t->('content'));
    
    1005 1007
                 } elsif ($t->('URL')) {
    
    1006 1008
                     urlget($project, {%$options, %$input_file, filename => $name}, 1);
    

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