You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/08/02 22:28:00 UTC
[2/2] mesos git commit: Fixed `clean-python` Makefile target.
Fixed `clean-python` Makefile target.
Our usage of `find ... -exec` did not take into account the order of
operations in `find`. The placement of `-exec` at the end meant that
only the `*.egg-info` files were being deleted.
Adding parentheses around all the `-o` operators fixes what is being
deleted.
Review: https://reviews.apache.org/r/50717/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0a7d8194
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0a7d8194
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0a7d8194
Branch: refs/heads/master
Commit: 0a7d819428f7e033077c968ce6a010995e96f05d
Parents: e1cb01a
Author: Joseph Wu <jo...@mesosphere.io>
Authored: Tue Aug 2 15:21:45 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Tue Aug 2 15:27:44 2016 -0700
----------------------------------------------------------------------
src/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/0a7d8194/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index 30d8f72..1a9b083 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1843,8 +1843,8 @@ all-local: $(MESOS_EGGS)
endif # HAS_PYTHON
clean-python:
- find python -name "build" -o -name "dist" -o -name "*.pyc" \
- -o -name "*.egg-info" -exec rm -rf '{}' \+
+ find python \( -name "build" -o -name "dist" -o -name "*.pyc" \
+ -o -name "*.egg-info" \) -exec rm -rf '{}' \+
PHONY_TARGETS += clean-python