mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
scanner: catalog: relax VERSION_CATALOG_REGEX
There may be other blocks in dependencyResolutionManagement
This commit is contained in:
parent
4c3dd9c76c
commit
24dc3baadf
2 changed files with 4 additions and 3 deletions
|
@ -73,9 +73,7 @@ GRADLE_KTS_CATALOG_FILE_REGEX = re.compile(
|
||||||
GRADLE_CATALOG_FILE_REGEX = re.compile(
|
GRADLE_CATALOG_FILE_REGEX = re.compile(
|
||||||
r'''(\w+)\s*\{[^}]*from\(files\(['"]([^"]+)['"]\)\)'''
|
r'''(\w+)\s*\{[^}]*from\(files\(['"]([^"]+)['"]\)\)'''
|
||||||
)
|
)
|
||||||
VERSION_CATALOG_REGEX = re.compile(
|
VERSION_CATALOG_REGEX = re.compile(r'versionCatalogs\s*\{')
|
||||||
r'dependencyResolutionManagement\s*\{[^}]*versionCatalogs\s*\{'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class ExitCode(IntEnum):
|
class ExitCode(IntEnum):
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
defaultLibrariesExtensionName = "projectLibs"
|
defaultLibrariesExtensionName = "projectLibs"
|
||||||
versionCatalogs {
|
versionCatalogs {
|
||||||
create("libs") {
|
create("libs") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue