# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.83 2004/09/13 14:27:07 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.84 2004/09/16 05:53:50 zhen Exp $
+
+ 16 Sep 2004; John Davis <zhen@gentoo.org> modules/catalyst_support.py,
+ +targets/livecd-stage2/unmerge.sh:
+ bug #59681 resolved thanks to the patch from viric@vicerveza.homeunix.net!
+ Also, livecd-stage2 unmerge.sh added back in.
13 Sep 2004; John Davis <zhen@gentoo.org> catalyst,
livecd/runscript-support/livecdfs-update.sh:
# Distributed under the GNU General Public License version 2
# Copyright 2003-2004 Gentoo Technologies, Inc.
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.26 2004/07/12 14:37:45 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.27 2004/09/16 05:53:50 zhen Exp $
-import sys,string,os,types
+import sys,string,os,types,re
# these should never be touched
required_build_targets=["generic_target","generic_stage_target"]
myline=mylines[pos].split()
if (len(myline)==0) or (myline[0][-1] != ":"):
- msg("Skipping invalid spec line "+repr(pos))
+ msg("Skipping invalid spec line "+repr(pos+1))
#strip colon:
myline[0]=myline[0][:-1]
if len(myline)==2:
if verbosity>=verblevel:
print mymsg
+def pathcompare(path1,path2):
+ # Change double slashes to slash
+ path1 = re.sub(r"//",r"/",path1)
+ path2 = re.sub(r"//",r"/",path2)
+ # Removing ending slash
+ path1 = re.sub("/$","",path1)
+ path2 = re.sub("/$","",path2)
+
+ if path1 == path2:
+ return 1
+ return 0
+
def ismount(path):
"enhanced to handle bind mounts"
if os.path.ismount(path):
a.close()
for line in mylines:
mysplit=line.split()
- if path == mysplit[1]:
+ if pathcompare(path,mysplit[1]):
return 1
return 0
--- /dev/null
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/Attic/unmerge.sh,v 1.3 2004/09/16 05:53:50 zhen Exp $
+
+$clst_CHROOT $clst_chroot_path /bin/bash << EOF
+ emerge -C $*
+EOF
+exit 0