From: Eric Edgar Date: Tue, 18 Oct 2005 21:12:45 +0000 (+0000) Subject: Correct a rsync issue when the directory doesnt exist X-Git-Tag: CATALYST_2_0_6_916~627 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63640f07fee972bd8eaf87e3af208cffb3e29ada;p=catalyst.git Correct a rsync issue when the directory doesnt exist git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@867 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 5ae9ecc5..54dc09c8 100644 --- 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.359 2005/10/17 19:01:06 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.360 2005/10/18 21:12:45 rocket Exp $ + + 18 Oct 2005; Eric Edgar + modules/generic_stage_target.py: + Correct a rsync issue when the directory doesnt exist 17 Oct 2005; Eric Edgar modules/generic_stage_target.py, targets/embedded/embedded-controller.sh, diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index f1348751..954ae69e 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 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.67 2005/10/17 19:01:06 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.68 2005/10/18 21:12:45 rocket Exp $ """ This class does all of the chroot setup, copying of files, etc. It is @@ -476,7 +476,7 @@ class generic_stage_target(generic_target): clst_unpack_md5sum=read_from_clst(self.settings["autoresume_path"]+"unpack") - if self.settings.has_key("SEEDCACHE") or os.path.isdir(self.settings["source_path"]): + if self.settings.has_key("SEEDCACHE") and os.path.isdir(self.settings["source_path"]): unpack_cmd="rsync -a --delete "+self.settings["source_path"]+" "+self.settings["chroot_path"] display_msg="\nStarting rsync from "+self.settings["source_path"]+"\nto "+\ self.settings["chroot_path"]+" (This may take some time) ...\n"