mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-15 05:56:46 +02:00
44 lines
887 B
Text
44 lines
887 B
Text
--- a/flutter/build/git_revision.py
|
|
+++ b/flutter/build/git_revision.py
|
|
@@ -22,18 +22,7 @@
|
|
if not os.path.exists(repository):
|
|
raise IOError('path does not exist')
|
|
|
|
- git = 'git'
|
|
- if is_windows():
|
|
- git = 'git.bat'
|
|
- version = subprocess.check_output([
|
|
- git,
|
|
- '-C',
|
|
- repository,
|
|
- 'rev-parse',
|
|
- 'HEAD',
|
|
- ])
|
|
-
|
|
- return str(version.strip(), 'utf-8')
|
|
+ return '0' * 41
|
|
|
|
|
|
def main():
|
|
--- ./flutter/tools/gn.orig
|
|
+++ ./flutter/tools/gn
|
|
@@ -286,18 +286,7 @@
|
|
if not os.path.exists(repository):
|
|
raise IOError('path does not exist')
|
|
|
|
- git = 'git'
|
|
- if sys.platform.startswith(('cygwin', 'win')):
|
|
- git = 'git.bat'
|
|
- version = subprocess.check_output([
|
|
- git,
|
|
- '-C',
|
|
- repository,
|
|
- 'rev-parse',
|
|
- 'HEAD',
|
|
- ])
|
|
-
|
|
- return str(version.strip(), 'utf-8')
|
|
+ return '0' * 41
|
|
|
|
|
|
def setup_git_versions():
|