Skip to content

Commit

Permalink
Merge pull request #5322 from benjaoming/well-known-contentpack-filen…
Browse files Browse the repository at this point in the history
…ame-patterns

More filename patterns for contentpack preseeding
  • Loading branch information
benjaoming committed Oct 7, 2016
2 parents e4bd996 + 2a186a9 commit 908070e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kalite/distributed/management/commands/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
version=SHORTVERSION, langcode="en", suffix="")

PRESEED_DIR = os.path.join(ROOT_DATA_PATH, "preseed")
PRESEED_CONTENT_PACK_MASK = re.compile(r"contentpack\.(?P<lang>[a-z]{2,}).zip")

# Examples:
# contentpack.en.zip
# contentpack-0.16.en.zip
PRESEED_CONTENT_PACK_MASK = re.compile(r"contentpack.*\.(?P<lang>[a-z]{2,}).zip")


def raw_input_yn(prompt):
Expand Down

0 comments on commit 908070e

Please sign in to comment.