git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1310
d1e1f19c-881f-0410-ab34-
b69fee027534
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 20 Feb 2008; Andrew Gaffney <agaffney@gentoo.org>
+ targets/livecd-stage2/livecd-stage2-controller.sh:
+ Only call find on libdirs that actually exist. Thanks to Kristoffer
+ <krek6597@student.uu.se> in bug 210807
+
20 Feb 2008; Andrew Gaffney <agaffney@gentoo.org>
modules/generic_stage_target.py:
Add warning about -* in foo/use in the spec
exec_in_chroot ${clst_fsscript}
;;
clean)
- find ${clst_chroot_path}/usr/lib -iname "*.pyc" -exec rm -f {} \;
- find ${clst_chroot_path}/usr/lib32 -iname "*.pyc" -exec rm -f {} \;
- find ${clst_chroot_path}/usr/lib64 -iname "*.pyc" -exec rm -f {} \;
+ for x in lib lib32 lib64
+ do
+ if [ -d "${clst_chroot_path}/usr/${x}" ]
+ then
+ find "${clst_chroot_path}/usr/${x}" -iname "*.pyc" -exec rm -f {} \;
+ fi
+ done
;;
bootloader)
shift