# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.247 2005/04/28 16:42:14 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.248 2005/04/28 16:45:43 rocket Exp $
+
+ 28 Apr 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py:
+ Make purge operation a little less chatty, removed print statements
28 Apr 2005; Eric Edgar <rocket@gentoo.org>
livecd/cdtar/isolinux-2.13-cdtar.tar.bz2,
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.43 2005/04/28 13:46:48 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.44 2005/04/28 16:45:43 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
def clear_chroot(self):
myemp=self.settings["chroot_path"]
- if not os.path.isdir(myemp):
- print myemp,"not a directory or does not exist, skipping 'chroot purge' operation."
- else:
+ if os.path.isdir(myemp):
print "Emptying directory",myemp
# stat the dir, delete the dir, recreate the dir and set
# the proper perms and ownership
print "purging the pkgcache ..."
myemp=self.settings["pkgcache_path"]
- if not os.path.isdir(myemp):
- print myemp,"not a directory or does not exist, skipping 'pkgcache purge' operation."
- else:
+ if os.path.isdir(myemp):
print "Emptying directory",myemp
# stat the dir, delete the dir, recreate the dir and set
# the proper perms and ownership
if self.settings.has_key("AUTORESUME"):
print "Removing AutoResume Points: ..."
myemp=self.settings["autoresume_path"]
- if not os.path.isdir(myemp):
- print myemp,"not a directory or does not exist, skipping 'pkgcache purge' operation."
- else:
+ if os.path.isdir(myemp):
print "Emptying directory",myemp
# stat the dir, delete the dir, recreate the dir and set
# the proper perms and ownership