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

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41325: Exclude Applications symlink when extracting dmg file in dmg2mar



Title: GitLab

boklm pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • 516907ba
    by Nicolas Vigier at 2024-11-27T13:48:56+01:00
    Bug 41325: Exclude Applications symlink when extracting dmg file in dmg2mar
    
    Recent versions of 7z fail to extract our dmg files since the
    `Applications` symlink points outside the archive:
    https://sourceforge.net/p/sevenzip/discussion/45797/thread/9f5b067368/?page=1&limit=50#2c78
    
    We exclude the `Applications` symlink to avoid the issue. We don't need
    it since it is not included in the mar file.
    

1 changed file:

Changes:

  • tools/dmg2mar
    ... ... @@ -132,6 +132,7 @@ sub convert_files {
    132 132
             $pm->start($step_name) and next;
    
    133 133
             my $tmpdir = File::Temp->newdir();
    
    134 134
             my (undef, $err, $success) = capture_exec('7z', 'x', "-o$tmpdir",
    
    135
    +                                                        '-x!*/Applications',
    
    135 136
                                                             $file->{filename});
    
    136 137
             exit_error "Error extracting $file->{filename}: $err" unless $success;
    
    137 138
     
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx