mozilla-bmo1568145.patch
branchfirefox109
changeset 1183 e69790650e3c
parent 1152 4cfe46c9a944
child 1184 1c3d3217d679
equal deleted inserted replaced
1182:cb6f01567cf8 1183:e69790650e3c
     8 for the definition of this variable.
     8 for the definition of this variable.
     9 
     9 
    10 diff --git a/python/mozbuild/mozbuild/action/langpack_manifest.py b/python/mozbuild/mozbuild/action/langpack_manifest.py
    10 diff --git a/python/mozbuild/mozbuild/action/langpack_manifest.py b/python/mozbuild/mozbuild/action/langpack_manifest.py
    11 --- a/python/mozbuild/mozbuild/action/langpack_manifest.py
    11 --- a/python/mozbuild/mozbuild/action/langpack_manifest.py
    12 +++ b/python/mozbuild/mozbuild/action/langpack_manifest.py
    12 +++ b/python/mozbuild/mozbuild/action/langpack_manifest.py
    13 @@ -11,16 +11,17 @@
    13 @@ -15,16 +15,17 @@ from __future__ import absolute_import, 
    14  from __future__ import absolute_import, print_function, unicode_literals
       
    15  
    14  
    16  import argparse
    15  import argparse
       
    16  import datetime
       
    17  import io
       
    18  import json
       
    19  import logging
       
    20  import os
    17  import sys
    21  import sys
    18  import os
       
    19  import json
       
    20  import io
       
    21  import datetime
       
    22 +import time
    22 +import time
       
    23  
       
    24  import fluent.syntax.ast as FTL
       
    25  import mozpack.path as mozpath
       
    26  import mozversioncontrol
    23  import requests
    27  import requests
    24  import mozversioncontrol
    28  from fluent.syntax.parser import FluentParser
    25  import mozpack.path as mozpath
    29  from mozbuild.configure.util import Version
    26  from mozpack.chrome.manifest import (
    30  from mozpack.chrome.manifest import Manifest, ManifestLocale, parse_manifest
    27      Manifest,
    31 @@ -102,17 +103,17 @@ def get_dt_from_hg(path):
    28      ManifestLocale,
       
    29      parse_manifest,
       
    30  )
       
    31 @@ -100,17 +101,17 @@ def get_dt_from_hg(path):
       
    32  #    ts == "20170914215617"
    32  #    ts == "20170914215617"
    33  ###
    33  ###
    34  def get_timestamp_for_locale(path):
    34  def get_timestamp_for_locale(path):
    35      dt = None
    35      dt = None
    36      if os.path.isdir(os.path.join(path, ".hg")):
    36      if os.path.isdir(os.path.join(path, ".hg")):
    43      dt = dt.replace(microsecond=0)
    43      dt = dt.replace(microsecond=0)
    44      return dt.strftime("%Y%m%d%H%M%S")
    44      return dt.strftime("%Y%m%d%H%M%S")
    45  
    45  
    46  
    46  
    47  ###
    47  ###
    48  # Parses multiple defines files into a single key-value pair object.
    48  # Parses an FTL file into a key-value pair object.
    49  #
    49  # Does not support attributes, terms, variables, functions or selectors;