scanner: fix local Debian Maven repo handling

The resulting regex was 'https?://file:///usr/share/maven-repo' causing
scanner error.
This commit is contained in:
relan 2019-08-29 21:16:17 +03:00
parent c7cd731833
commit 3a7ad650e3
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ def scan_source(build_dir, build=metadata.Build()):
's3.amazonaws.com/repo.commonsware.com', # CommonsWare
'plugins.gradle.org/m2', # Gradle plugin repo
'maven.google.com', # Google Maven Repo, https://developer.android.com/studio/build/dependencies.html#google-maven
'file:///usr/share/maven-repo', # local repo on Debian installs
]
] + [re.compile(r'^file://' + re.escape(repo) + r'/*') for repo in [
'/usr/share/maven-repo', # local repo on Debian installs
]
]