Niedzielski has uploaded a new change for review.
https://gerrit.wikimedia.org/r/225341
Change subject: Fix build script path conversion
......................................................................
Fix build script path conversion
- Fix bug wherein build script path conversion assumed too much about
the length of a module hierarchy.
Change-Id: I4fa03f09ae258c18c255c45897e84b4f72dd39b8
---
M settings.gradle
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia
refs/changes/41/225341/1
diff --git a/settings.gradle b/settings.gradle
index d738c4d..7c7900f 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -3,7 +3,9 @@
}
def hierarchyToFilename = { String hierarchy ->
- return hierarchy ? hierarchy.substring(1).replaceAll(':', File.separator)
: hierarchy
+ return hierarchy && hierarchy.length() > 0 ?
+ hierarchy.substring(1).replaceAll(':', File.separator) :
+ hierarchy
}
def includeExists = { String projectPath, String name ->
--
To view, visit https://gerrit.wikimedia.org/r/225341
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4fa03f09ae258c18c255c45897e84b4f72dd39b8
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits