Improve support for SELinux in python_merge_intermediate_installation_images().
authorDirkjan Ochtman <djc@gentoo.org>
Fri, 7 Oct 2011 10:49:26 +0000 (10:49 +0000)
committerDirkjan Ochtman <djc@gentoo.org>
Fri, 7 Oct 2011 10:49:26 +0000 (10:49 +0000)
(Patch by Arfrever.)

eclass/python.eclass

index ee5c175a60d0c419d59fc686047b8a70c2f1b886..d56918590b4e986b22498c1361825d221d266537 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.133 2011/10/07 10:48:24 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.134 2011/10/07 10:49:26 djc Exp $
 
 # @ECLASS: python.eclass
 # @MAINTAINER:
@@ -1573,7 +1573,7 @@ for file in sorted(files_set):
                popd > /dev/null || die "popd failed"
 
                if ROOT="/" has_version sys-apps/coreutils; then
-                       cp -fr --preserve=all "${intermediate_installation_images_directory}/${PYTHON_ABI}/"* "${D}" || die "Merging of intermediate installation image for Python ABI '${PYTHON_ABI} into installation image failed"
+                       cp -fr --preserve=all --no-preserve=context "${intermediate_installation_images_directory}/${PYTHON_ABI}/"* "${D}" || die "Merging of intermediate installation image for Python ABI '${PYTHON_ABI} into installation image failed"
                else
                        cp -fpr "${intermediate_installation_images_directory}/${PYTHON_ABI}/"* "${D}" || die "Merging of intermediate installation image for Python ABI '${PYTHON_ABI} into installation image failed"
                fi