From 2f7968e860a9c959a03a0d49728f8635309246f3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 17 Aug 2017 10:46:58 -0700 Subject: [PATCH] provision: Use 'cp -a' for copying requirements.txt. It's generally best to preserve the metadata when copying files. --- tools/provision | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/provision b/tools/provision index 7d13eac..15871c0 100755 --- a/tools/provision +++ b/tools/provision @@ -27,7 +27,7 @@ cmp "$BASEDIR/zulip-api-py2-venv/installed-requirements.txt" requirements.txt 2> RVAL=$? # Return value of the comparision. 0 means files are same. if [ "$RVAL" -ne 0 ]; then pip install -r "$BASEDIR/requirements.txt" - cp requirements.txt "$BASEDIR/zulip-api-py2-venv/installed-requirements.txt" + cp -a requirements.txt "$BASEDIR/zulip-api-py2-venv/installed-requirements.txt" echo "Requirements installed." fi echo 'Success! Run `source' "$BASEDIR/zulip-api-py2-venv/bin/activate"'`' "to activate virtualenv."