From: Hans-Christoph Steiner Date: Tue, 10 Oct 2017 10:41:49 +0000 (+0200) Subject: update: support Fastlane's official location for screenshots X-Git-Tag: 0.9~56^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=460c4185bb2641b9e67c2d743fa145df11ba69ea;p=fdroidserver.git update: support Fastlane's official location for screenshots fastlane/android/metadata/locale/images/*Screenshots https://github.com/fastlane/fastlane/blob/2.61.0/screengrab/lib/screengrab/runner.rb#L324 closes #357 --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index a77417a6..526372b8 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -817,6 +817,9 @@ def insert_localized_app_metadata(apps): shutil.copy(os.path.join(root, f), destdir) for d in dirs: if d in SCREENSHOT_DIRS: + if locale == 'images': + locale = segments[-2] + destdir = os.path.join('repo', packageName, locale) for f in glob.glob(os.path.join(root, d, '*.*')): _, extension = common.get_extension(f) if extension in ALLOWED_EXTENSIONS: