Make purge operation a little less chatty, removed print statements
authorEric Edgar <rocket@gentoo.org>
Thu, 28 Apr 2005 16:45:43 +0000 (16:45 +0000)
committerEric Edgar <rocket@gentoo.org>
Thu, 28 Apr 2005 16:45:43 +0000 (16:45 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@635 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py

index da941ba7efc0f2a88b7a7e2c1a8f7c64e2b3f235..92bf76e1acb57a3af8414516c30f67f03fc5d6f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # 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,
index 510bce38a47a0a5c2f3d7cf815b06aaf404dc595..cc566898123018878cb04245ee27d4d6dceb33d4 100644 (file)
@@ -1,6 +1,6 @@
 # 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
@@ -970,9 +970,7 @@ class generic_stage_target(generic_target):
 
        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
@@ -988,9 +986,7 @@ class generic_stage_target(generic_target):
                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
@@ -1006,9 +1002,7 @@ class generic_stage_target(generic_target):
                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