-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1916517 - add /usr/bin/firefox to the firefox-esr deb package r=g…
…landium Debian's firefox-esr package adds its own /usr/bin/firefox and diverts it away, so we either need to do the same or clean up the diversion in our postinst, otherwise /usr/bin/firefox goes permanently missing when upgrading from Debian to Mozilla's firefox-esr package. Differential Revision: https://phabricator.services.mozilla.com/D222752 UltraBlame original commit: 20267c5d61c02127ca8b3982d3c1795111773f86
- Loading branch information
Showing
5 changed files
with
212 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
usr | ||
/ | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
! | ||
/ | ||
bin | ||
/ | ||
sh | ||
FIREFOX | ||
= | ||
" | ||
( | ||
command | ||
- | ||
v | ||
firefox | ||
) | ||
" | ||
[ | ||
- | ||
x | ||
" | ||
FIREFOX | ||
. | ||
real | ||
" | ||
] | ||
& | ||
& | ||
exec | ||
" | ||
FIREFOX | ||
. | ||
real | ||
" | ||
" | ||
" | ||
exec | ||
firefox | ||
- | ||
esr | ||
" | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
! | ||
/ | ||
bin | ||
/ | ||
sh | ||
- | ||
e | ||
if | ||
[ | ||
{ | ||
DEB_PKG_NAME | ||
} | ||
= | ||
firefox | ||
- | ||
esr | ||
] | ||
; | ||
then | ||
if | ||
[ | ||
" | ||
1 | ||
" | ||
= | ||
" | ||
remove | ||
" | ||
] | ||
; | ||
then | ||
dpkg | ||
- | ||
divert | ||
- | ||
- | ||
package | ||
firefox | ||
- | ||
esr | ||
- | ||
- | ||
rename | ||
- | ||
- | ||
remove | ||
/ | ||
usr | ||
/ | ||
bin | ||
/ | ||
firefox | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# | ||
! | ||
/ | ||
bin | ||
/ | ||
sh | ||
- | ||
e | ||
if | ||
[ | ||
{ | ||
DEB_PKG_NAME | ||
} | ||
= | ||
firefox | ||
- | ||
esr | ||
] | ||
; | ||
then | ||
if | ||
[ | ||
" | ||
1 | ||
" | ||
= | ||
" | ||
upgrade | ||
" | ||
] | ||
| | ||
| | ||
[ | ||
" | ||
1 | ||
" | ||
= | ||
" | ||
install | ||
" | ||
] | ||
; | ||
then | ||
dpkg | ||
- | ||
divert | ||
- | ||
- | ||
package | ||
firefox | ||
- | ||
esr | ||
- | ||
- | ||
divert | ||
/ | ||
usr | ||
/ | ||
bin | ||
/ | ||
firefox | ||
. | ||
real | ||
- | ||
- | ||
rename | ||
/ | ||
usr | ||
/ | ||
bin | ||
/ | ||
firefox | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters