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

[tor-commits] [Git][tpo/applications/tor-browser-build][maint-12.0] Bug 40790: Fix dmg2mar after dmg changes from #28124



Title: GitLab

Richard Pospesel pushed to branch maint-12.0 at The Tor Project / Applications / tor-browser-build

Commits:

  • f50bc8b7
    by Nicolas Vigier at 2023-02-17T16:42:29+00:00
    Bug 40790: Fix dmg2mar after dmg changes from #28124
    
    
    (cherry picked from commit a22a592fe52e08fbd1e0f36b2940706a8160a669)

1 changed file:

Changes:

  • tools/dmg2mar
    ... ... @@ -128,9 +128,11 @@ sub convert_files {
    128 128
             my $oldmar = getcwd . '/' . $output;
    
    129 129
             exit_error "Error extracting $output"
    
    130 130
                     unless system('mar', '-C', $tmpdir_oldmar, '-x', $oldmar) == 0;
    
    131
    +        my $appdir = "$tmpdir/$appname/$appname.app";
    
    132
    +        exit_error "Missing directory $appdir" unless -d $appdir;
    
    131 133
             my $wanted = sub {
    
    132 134
                 my $file = $File::Find::name;
    
    133
    -            $file =~ s{^$tmpdir/$appname\.app/}{};
    
    135
    +            $file =~ s{^$appdir/}{};
    
    134 136
                 if (-f "$tmpdir_oldmar/$file") {
    
    135 137
                     my (undef, undef, $mode) = stat("$tmpdir_oldmar/$file");
    
    136 138
                     chmod $mode, $File::Find::name;
    
    ... ... @@ -139,14 +141,14 @@ sub convert_files {
    139 141
                 chmod 0644, $File::Find::name if -f $File::Find::name;
    
    140 142
                 chmod 0755, $File::Find::name if -d $File::Find::name;
    
    141 143
             };
    
    142
    -        find($wanted, "$tmpdir/$appname.app");
    
    144
    +        find($wanted, $appdir);
    
    143 145
     
    
    144 146
             unlink $output;
    
    145 147
             local $ENV{MOZ_PRODUCT_VERSION} = $file->{version};
    
    146 148
             local $ENV{MAR_CHANNEL_ID} = "torbrowser-torproject-$channel";
    
    147 149
             local $ENV{TMPDIR} = $tmpdir;
    
    148 150
             (undef, $err, $success) =  capture_exec('make_full_update.sh', '-q',
    
    149
    -                                        $output, "$tmpdir/$appname.app");
    
    151
    +                                        $output, $appdir);
    
    150 152
             exit_error "Error updating $output: $err" unless $success;
    
    151 153
             exit_error "make_full_update.sh failed. $output does not exist."
    
    152 154
                 unless -f $output;
    

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