Skip to content
Snippets Groups Projects
Verified Commit a82df901 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 41166: Use the GitHub repository for firefox-l10n.

Mozilla uplifted Bug 1900421 to 115 to 128, so we have to switch to the
new GitHub repository immediately as well.
parent 75a548af
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ etc ...). You will need to install the uidmap package, providing the ...@@ -10,7 +10,7 @@ etc ...). You will need to install the uidmap package, providing the
newuidmap and newgidmap commands. newuidmap and newgidmap commands.
The sources of most components are downloaded using git, which needs to The sources of most components are downloaded using git, which needs to
be installed. The mercurial package is also needed. be installed.
Zstandard (zstd) is used to compress some tarballs and needs to be Zstandard (zstd) is used to compress some tarballs and needs to be
installed. You'll also need tar >= 1.31, for zstd support. installed. You'll also need tar >= 1.31, for zstd support.
...@@ -46,7 +46,7 @@ If you are running Debian or Ubuntu, you can install them with: ...@@ -46,7 +46,7 @@ If you are running Debian or Ubuntu, you can install them with:
libparallel-forkmanager-perl libpath-tiny-perl \ libparallel-forkmanager-perl libpath-tiny-perl \
libsort-versions-perl libstring-shellquote-perl \ libsort-versions-perl libstring-shellquote-perl \
libtemplate-perl libxml-libxml-perl libxml-writer-perl \ libtemplate-perl libxml-libxml-perl libxml-writer-perl \
libyaml-libyaml-perl git mercurial uidmap zstd libyaml-libyaml-perl git uidmap zstd
If you are running Fedora, CentOS or RHEL, you can install them with: If you are running Fedora, CentOS or RHEL, you can install them with:
...@@ -57,7 +57,7 @@ If you are running Fedora, CentOS or RHEL, you can install them with: ...@@ -57,7 +57,7 @@ If you are running Fedora, CentOS or RHEL, you can install them with:
"perl(File::Copy::Recursive)" "perl(String::ShellQuote)" \ "perl(File::Copy::Recursive)" "perl(String::ShellQuote)" \
"perl(Sort::Versions)" "perl(Digest::SHA)" "perl(Data::UUID)" \ "perl(Sort::Versions)" "perl(Digest::SHA)" "perl(Data::UUID)" \
"perl(Data::Dump)" "perl(DateTime)" "perl(XML::Writer)" \ "perl(Data::Dump)" "perl(DateTime)" "perl(XML::Writer)" \
"perl(Parallel::ForkManager)" perl-ph mercurial git zstd "perl(Parallel::ForkManager)" perl-ph git zstd
If you are running an Arch based system, you should be able to install them with: If you are running an Arch based system, you should be able to install them with:
......
...@@ -2,15 +2,22 @@ ...@@ -2,15 +2,22 @@
version: '[% pc("firefox", "abbrev") %]' version: '[% pc("firefox", "abbrev") %]'
filename: '[% project %]-[% c("var/osname") %]-[% c("version") %]-[% c("var/build_id") %]' filename: '[% project %]-[% c("var/osname") %]-[% c("version") %]-[% c("var/build_id") %]'
link_input_files: 1 link_input_files: 1
# We need to specify git_url in the root to make this project recognized as a
# git project, we canoot specify the git_url only in the step.
# However, once we specify a git_url, we need to specify a valid git_hash for
# the final stage, even though we are not going to use it.
# Any hash will work, as long as we can run git archive on it.
git_url: https://github.com/mozilla-l10n/firefox-l10n.git
git_hash: c1523924f0e10259e1a80b8268556f6f7a0b29bf
steps: steps:
fetch_locale: fetch_locale:
filename: 'l10n-[% c("input_file_var/locale") %]-[% c("hg_hash") %]-[% c("var/build_id") %].tar.xz' filename: 'l10n-[% c("input_file_var/locale") %]-[% c("abbrev") %]-[% c("var/build_id") %].tar.xz'
version: '[% c("hg_hash") %]' version: '[% c("git_hash") %]'
fetch_locale: | fetch_locale: |
[% c("var/set_default_env") -%] [% c("var/set_default_env") -%]
tar xf '[% project %]-[% c("version") %].tar.[% c("compress_tar") %]' tar xf '[% project %]-[% c("version") %].tar.[% c("compress_tar") %]'
mv [% project %]-[% c("version") %] [% c("input_file_var/locale") %] cd [% project %]-[% c("version") %]
tar caf '[% dest_dir %]/[% c("filename") %]' [% c("input_file_var/locale") %] tar caf '[% dest_dir %]/[% c("filename") %]' [% c("input_file_var/locale") %]
input_files: [] input_files: []
--- | --- |
...@@ -38,9 +45,7 @@ steps: ...@@ -38,9 +45,7 @@ steps:
name => $locale, name => $locale,
project => 'firefox-l10n', project => 'firefox-l10n',
pkg_type => 'fetch_locale', pkg_type => 'fetch_locale',
hg_hash => $revision, git_hash => $revision,
hg_url => "https://hg.mozilla.org/l10n-central/$locale",
hg_clone_subdir => $locale,
input_file_var => { input_file_var => {
locale => $locale, locale => $locale,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment