Commit 329a857e authored by Michal Čihař's avatar Michal Čihař

Do all operations using single sed

Issue #980
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 668bc574
......@@ -54,9 +54,9 @@ cd ${OPENSHIFT_REPO_DIR}
# Pin Django version to 1.8 to avoid surprises when 1.9 comes out.
# Prevent lxml 3.5 or later to be used on OpenShift because its compilation
# needs more memory than small gears can provide.
cat $OPENSHIFT_REPO_DIR/requirements.txt |
sed -e 's/Django[<>=]\+.*/Django>=1.8,<1.9/' |
sed -e 's/lxml[<>=]\+.*/\0,<3.5/' \
sed -e 's/Django[<>=]\+.*/Django>=1.8,<1.9/' \
-e 's/lxml[<>=]\+.*/\0,<3.5/' \
$OPENSHIFT_REPO_DIR/requirements.txt \
>/tmp/requirements.txt
sh "pip install -U -r /tmp/requirements.txt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment