From d550db3b8918b2442d54bfbc99e812969fbce534 Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Thu, 14 Apr 2016 10:40:37 -0400 Subject: [PATCH] Update to YORM 0.8 --- gitman/models/config.py | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gitman/models/config.py b/gitman/models/config.py index 5412569c..38f525f9 100644 --- a/gitman/models/config.py +++ b/gitman/models/config.py @@ -16,7 +16,7 @@ @yorm.attr(location=String) @yorm.attr(sources=SortedList.of_type(Source)) @yorm.attr(sources_locked=SortedList.of_type(Source)) -@yorm.sync("{self.root}/{self.filename}") +@yorm.sync("{self.root}/{self.filename}", auto_save=False) class Config: """A dictionary of dependency configuration options.""" @@ -139,7 +139,8 @@ def lock_deps(self, *names, obey_existing=True): shell.cd(self.location_path, _show=False) if count: - yorm.update_file(self) + yorm.save(self) + return count def uninstall_deps(self): diff --git a/requirements.txt b/requirements.txt index 2c849ef1..9faa8628 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -YORM ~= 0.7.2 +YORM ~= 0.8 sh ~= 1.11