]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
download_import_cldr: unzip into versioned dir
authorAarni Koskela <akx@iki.fi>
Sun, 20 Dec 2015 21:51:18 +0000 (23:51 +0200)
committerAarni Koskela <akx@iki.fi>
Mon, 21 Dec 2015 10:52:03 +0000 (12:52 +0200)
scripts/download_import_cldr.py

index f8ba1fa924fba37f869c325ed0489cba4ffc953a..f9523aac55fc49368b192020436507458bce805b 100755 (executable)
@@ -71,8 +71,9 @@ def is_good_file(filename):
 def main():
     scripts_path = os.path.dirname(os.path.abspath(__file__))
     repo = os.path.dirname(scripts_path)
-    cldr_path = os.path.join(repo, 'cldr')
-    zip_path = os.path.join(cldr_path, FILENAME)
+    cldr_dl_path = os.path.join(repo, 'cldr')
+    cldr_path = os.path.join(repo, 'cldr', os.path.splitext(FILENAME)[0])
+    zip_path = os.path.join(cldr_dl_path, FILENAME)
     changed = False
 
     while not is_good_file(zip_path):