#!@BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: /var/cvsroot/gentoo-src/portage/bin/dodir,v 1.5 2004/10/04 13:56:50 vapier Exp $
+# $Id$
-slash=/
-exec install -d ${DIROPTIONS} "${@/#${slash}/${ED}${slash}}"
+exec install -d ${DIROPTIONS} "${@/#/${ED}/}"
#!@BASH@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: fowners 1912 2005-08-25 03:54:42Z ferringb $
+# $Id$
-slash=/
-exec chown "${@/#${slash}/${ED}${slash}}"
+exec chown "${@/#/${ED}/}"
#!@BASH@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: fperms 1912 2005-08-25 03:54:42Z ferringb $
+# $Id$
-slash=/
-exec chmod "${@/#${slash}/${ED}${slash}}"
+exec chmod "${@/#/${ED}/}"
# Preserve old libs if they are still in use
if slot_matches and "preserve-libs" in self.settings.features:
- myfilelist = listdir(srcroot, recursive=1, filesonly=1, followSymlinks=True)
+ myfilelist = listdir(srcroot, recursive=1, filesonly=1, followSymlinks=False)
mylinklist = filter(os.path.islink, listdir(srcroot, recursive=1, filesonly=0, followSymlinks=False))
self._preserve_libs(srcroot, destroot, myfilelist+mylinklist)
# check for package collisions
if "collision-protect" in self.settings.features:
if myfilelist == None:
- myfilelist = listdir(srcroot, recursive=1, filesonly=1, followSymlinks=True)
+ myfilelist = listdir(srcroot, recursive=1, filesonly=1, followSymlinks=False)
if mylinklist == None:
mylinklist = filter(os.path.islink, listdir(srcroot, recursive=1, filesonly=0, followSymlinks=False))
self._collision_protect(srcroot, destroot, otherversions, myfilelist+mylinklist, mylinklist)
return derived_func
for c in compat_functions_colors:
- setattr(sys.modules[__name__], c, create_color_func(c))
+ locals()[c] = create_color_func(c)
class EOutput:
"""
bin.startswith("new") or \
bin.startswith("prep") or \
bin in ["ecompress","ecompressdir","fowners","fperms"]:
- setattr(sys.modules[__name__], bin, create_portage_wrapper(bin))
+ locals()[bin] = create_portage_wrapper(bin)