[jhbuild] in copy mode, first remove destination directory if it exists
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] in copy mode, first remove destination directory if it exists
- Date: Thu, 30 Apr 2009 02:14:18 -0400 (EDT)
commit 4199e09942964d1ce8290b472870ff0d58bb1e47
Author: Frederic Peters <fpeters 0d be>
Date: Thu Apr 30 08:05:27 2009 +0200
in copy mode, first remove destination directory if it exists
---
jhbuild/versioncontrol/__init__.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/jhbuild/versioncontrol/__init__.py b/jhbuild/versioncontrol/__init__.py
index 81fb86f..3b0e790 100644
--- a/jhbuild/versioncontrol/__init__.py
+++ b/jhbuild/versioncontrol/__init__.py
@@ -118,6 +118,8 @@ class Branch:
module = self.checkoutdir
fromdir = os.path.join(copydir, os.path.basename(module))
todir = os.path.join(self.config.checkoutroot, os.path.basename(module))
+ if os.path.exists(todir):
+ self._wipedir(buildscript)
buildscript.execute(['cp', '-R', fromdir, todir])
def to_sxml(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]