Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
T
tor-browser-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
tor-browser-build
Commits
f50bc8b7
Commit
f50bc8b7
authored
Feb 17, 2023
by
boklm
Committed by
Richard Pospesel
Feb 17, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40790: Fix dmg2mar after dmg changes from
#28124
(cherry picked from commit
a22a592f
)
parent
851a5e7c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/dmg2mar
+5
-3
5 additions, 3 deletions
tools/dmg2mar
with
5 additions
and
3 deletions
tools/dmg2mar
+
5
−
3
View file @
f50bc8b7
...
...
@@ -128,9 +128,11 @@ sub convert_files {
my
$oldmar
=
getcwd
.
'
/
'
.
$output
;
exit_error
"
Error extracting
$output
"
unless
system
('
mar
',
'
-C
',
$tmpdir_oldmar
,
'
-x
',
$oldmar
)
==
0
;
my
$appdir
=
"
$tmpdir
/
$appname
/
$appname
.app
";
exit_error
"
Missing directory
$appdir
"
unless
-
d
$appdir
;
my
$wanted
=
sub
{
my
$file
=
$
File::Find::
name
;
$file
=~
s{^$
tm
pdir/
$appname\.app/
}{}
;
$file
=~
s{^$
ap
pdir/}{}
;
if
(
-
f
"
$tmpdir_oldmar
/
$file
")
{
my
(
undef
,
undef
,
$mode
)
=
stat
("
$tmpdir_oldmar
/
$file
");
chmod
$mode
,
$
File::Find::
name
;
...
...
@@ -139,14 +141,14 @@ sub convert_files {
chmod
0644
,
$
File::Find::
name
if
-
f
$
File::Find::
name
;
chmod
0755
,
$
File::Find::
name
if
-
d
$
File::Find::
name
;
};
find
(
$wanted
,
"
$tmpdir
/
$appname
.app
"
);
find
(
$wanted
,
$appdir
);
unlink
$output
;
local
$ENV
{
MOZ_PRODUCT_VERSION
}
=
$file
->
{
version
};
local
$ENV
{
MAR_CHANNEL_ID
}
=
"
torbrowser-torproject-
$channel
";
local
$ENV
{
TMPDIR
}
=
$tmpdir
;
(
undef
,
$err
,
$success
)
=
capture_exec
('
make_full_update.sh
',
'
-q
',
$output
,
"
$tmpdir
/
$appname
.app
"
);
$output
,
$appdir
);
exit_error
"
Error updating
$output
:
$err
"
unless
$success
;
exit_error
"
make_full_update.sh failed.
$output
does not exist.
"
unless
-
f
$output
;
...
...
...
...
This diff is collapsed.
Click to expand it.
morgan
@morgan
mentioned in merge request
!661 (merged)
·
Feb 17, 2023
mentioned in merge request
!661 (merged)
mentioned in merge request !661
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment