From c2d58b378b3cf350d042a7b657e2b7f5861c5f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 8 Aug 2022 19:36:55 +0200 Subject: [PATCH] Ignore egg-info directories and clean them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test .gitignore and make clean distclean error: missing .gitignore entry for libselinux/src/selinux.egg-info/ error: missing .gitignore entry for python/sepolicy/sepolicy.egg-info/ Error: Process completed with exit code 1. error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/PKG-INFO error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/SOURCES.txt error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/dependency_links.txt error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/top_level.txt error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/PKG-INFO error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/SOURCES.txt error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/dependency_links.txt error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/top_level.txt Error: Process completed with exit code 1. Signed-off-by: Christian Göttsche Acked-by: James Carter --- libselinux/src/.gitignore | 1 + libselinux/src/Makefile | 2 +- python/sepolicy/.gitignore | 1 + python/sepolicy/Makefile | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libselinux/src/.gitignore b/libselinux/src/.gitignore index 001f20b0..94400e81 100644 --- a/libselinux/src/.gitignore +++ b/libselinux/src/.gitignore @@ -1,3 +1,4 @@ selinux.py selinuxswig_python_wrap.c selinuxswig_ruby_wrap.c +selinux.egg-info/ diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 88aa32f8..49b7d60a 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -201,7 +201,7 @@ relabel: clean-pywrap: -rm -f $(SWIGLOBJ) $(SWIGSO) $(AUDIT2WHYLOBJ) $(AUDIT2WHYSO) $(PYTHON) setup.py clean - -rm -rf build *~ \#* *pyc .#* + -rm -rf build *~ \#* *pyc .#* selinux.egg-info/ clean-rubywrap: -rm -f $(SWIGRUBYLOBJ) $(SWIGRUBYSO) diff --git a/python/sepolicy/.gitignore b/python/sepolicy/.gitignore index 3186c860..32fb47f9 100644 --- a/python/sepolicy/.gitignore +++ b/python/sepolicy/.gitignore @@ -1,3 +1,4 @@ build tmp *.bak +sepolicy.egg-info/ diff --git a/python/sepolicy/Makefile b/python/sepolicy/Makefile index 3361be4e..d983e409 100644 --- a/python/sepolicy/Makefile +++ b/python/sepolicy/Makefile @@ -18,7 +18,7 @@ python-build: clean: $(PYTHON) setup.py clean - -rm -rf build *~ \#* *pyc .#* + -rm -rf build *~ \#* *pyc .#* sepolicy.egg-info/ sepolgen: ln -sf sepolicy sepolgen