aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-08-31 13:54:09 -0400
committerW. Trevor King <wking@drexel.edu>2009-08-31 13:54:09 -0400
commite67058f13ce09ab6870c8bd8ebfa2f198bd06b47 (patch)
tree9b4ced4b31c23c08292c2a1af4f62f814538a0fa /libbe/bugdir.py
parent6d3fc831cdbba47a90b03706f25af1682abe862b (diff)
downloadbugseverywhere-e67058f13ce09ab6870c8bd8ebfa2f198bd06b47.tar.gz
BugDir.duplicate_bugdir() fix for when parent bugdir's sync_with_disk == False.
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 3be579f..af43917 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -510,8 +510,14 @@ settings easy. Don't set this attribute. Set .vcs instead, and
duplicate_path = self.vcs.duplicate_repo(revision)
duplicate_version_path = os.path.join(duplicate_path, ".be", "version")
- version = self.get_version(duplicate_version_path,
- for_duplicate_bugdir=True)
+ try:
+ version = self.get_version(duplicate_version_path,
+ for_duplicate_bugdir=True)
+ except DiskAccessRequired:
+ self.sync_with_disk = True # temporarily allow access
+ version = self.get_version(duplicate_version_path,
+ for_duplicate_bugdir=True)
+ self.sync_with_disk = False
if version != upgrade.BUGDIR_DISK_VERSION:
upgrade.upgrade(duplicate_path, version)