diff --git a/src/android_components.py b/src/android_components.py index 31e1e73..c4ff621 100644 --- a/src/android_components.py +++ b/src/android_components.py @@ -89,8 +89,8 @@ def _update_gv_version( contents = ac_repo.get_contents(get_gecko_file_path(ac_major_version), ref=branch) content = contents.decoded_content.decode("utf-8") new_content = content.replace( - f'const val version = "{old_gv_version}"', - f'const val version = "{new_gv_version}"', + f'fun version() = "{old_gv_version}"', + f'fun version() = "{new_gv_version}"', ) if content == new_content: raise Exception( diff --git a/src/relbot.py b/src/relbot.py index 146bded..8ed752f 100755 --- a/src/relbot.py +++ b/src/relbot.py @@ -38,8 +38,8 @@ DEFAULT_ORGANIZATION = "st3fan" -DEFAULT_AUTHOR_NAME = "MickeyMoz" -DEFAULT_AUTHOR_EMAIL = "sebastian@mozilla.com" +DEFAULT_AUTHOR_NAME = "Gabriel Luong" +DEFAULT_AUTHOR_EMAIL = "gabriel.luong@gmail.com" USAGE = "usage: relbot command..." # noqa E501 diff --git a/src/util.py b/src/util.py index bef1d57..042ec46 100644 --- a/src/util.py +++ b/src/util.py @@ -74,7 +74,7 @@ def get_current_embedded_ac_version(repo, release_branch_name, target_path=""): def match_gv_version(src): """Find the GeckoView version in the contents of the given Gecko.kt file.""" - if match := re.compile(r'version = "([^"]*)"', re.MULTILINE).search(src): + if match := re.compile(r'version\(?\)? = "([^"]*)"', re.MULTILINE).search(src): return validate_gv_version(match[1]) raise Exception("Could not match the version in Gecko.kt") @@ -90,7 +90,7 @@ def get_current_gv_version(ac_repo, release_branch_name, ac_major_version): def match_gv_channel(src): """Find the GeckoView channel in the contents of the given Gecko.kt file.""" if match := re.compile( - r"val channel = GeckoChannel.(NIGHTLY|BETA|RELEASE)", re.MULTILINE + r"channel\(?\)? = GeckoChannel.(NIGHTLY|BETA|RELEASE)", re.MULTILINE ).search(src): return validate_gv_channel(match[1].lower()) raise Exception("Could not match the channel in Gecko.kt")