-
Committer:
John Arbash Meinel
-
Date:
2009-05-27 08:46:32 UTC
-
mto:
(4343.3.25 1.15-gc-stacking)
-
mto:
This revision was merged to the branch mainline in
revision
4392.
-
Revision ID:
john@arbash-meinel.com-20090527084632-jfs47silmrswlgvd
Change the Repository.add_fallback_repository() contract slightly.
So the final statement for fallback repositories is:
1) When transitioning from unlocked => locked, we will lock the fallback repos
2) When transitioning from locked => unlocked, we will unlock the fallback repos
3) If self.is_locked(), add_fallback_repository() will lock the fallback repo,
which will match (2) when self is finally unlocked.
Callers of add_fallback_repository() maintain their responsibility to match
every lock that they perform with a corresponding unlock.