[jhbuild] remove useless calculation of checkout directory



commit 131924d5084237823b6a3b967d623738286b788b
Author: Frederic Peters <fpeters 0d be>
Date:   Thu Apr 30 20:04:29 2009 +0200

    remove useless calculation of checkout directory
---
 jhbuild/versioncontrol/__init__.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/jhbuild/versioncontrol/__init__.py b/jhbuild/versioncontrol/__init__.py
index 46b5929..b5dd4bf 100644
--- a/jhbuild/versioncontrol/__init__.py
+++ b/jhbuild/versioncontrol/__init__.py
@@ -119,9 +119,8 @@ class Branch:
         elif self.checkout_mode in ('update', 'copy'):
             if self.checkout_mode == 'copy' and self.config.copy_dir:
                 copydir = self.config.copy_dir
-                if os.path.exists(os.path.join(copydir,
-                            os.path.basename(self.get_checkoutdir()))):
-                    self._update(buildscript, copydir)
+                if os.path.exists(self.get_checkoutdir()):
+                    self._update(buildscript, self.config.copy_dir)
                 else:
                     self._wipedir(buildscript)
                     self._checkout(buildscript, copydir)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]