[jhbuild] use instance checkout_mode instead of global config value



commit b1e4aa229b3aea154f8c9c0b945d440f3809fc04
Author: Frederic Peters <fpeters 0d be>
Date:   Fri May 1 11:22:56 2009 +0200

    use instance checkout_mode instead of global config value
    
    It is possible to override checkout_mode for individual modules
    in .jhbuildrc so the global configuration value should not be
    used in get_checkoudir().
---
 jhbuild/versioncontrol/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/jhbuild/versioncontrol/__init__.py b/jhbuild/versioncontrol/__init__.py
index b5dd4bf..518638a 100644
--- a/jhbuild/versioncontrol/__init__.py
+++ b/jhbuild/versioncontrol/__init__.py
@@ -93,7 +93,7 @@ class Branch:
         raise NotImplementedError
 
     def get_checkoutdir(self):
-        if self.config.checkout_mode == 'copy' and self.config.copy_dir:
+        if self.checkout_mode == 'copy' and self.config.copy_dir:
             return os.path.join(self.config.copy_dir, os.path.basename(self.module))
         if self.checkoutdir:
             return os.path.join(self.checkoutroot, self.checkoutdir)



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