mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Fixed a bug with the context switching
The context switching wasn't really happening. Now the issue is fixed.
This commit is contained in:
1 parent
91ff904ac4
commit
72e54aa3d1
2 files changed
+4
-3
No files matched your search
+3
-1
@@ -42,6 +42,7 @@ type AptlyContext struct {
|
||||
|
||||
var context *AptlyContext
|
||||
var savedContext *AptlyContext
|
||||
var tempContext *AptlyContext
|
||||
|
||||
// Check interface
|
||||
var _ aptly.PublishedStorageProvider = &AptlyContext{}
|
||||
@@ -67,8 +68,9 @@ func Fatal(err error) {
|
||||
|
||||
func switchContext() {
|
||||
|
||||
savedContext = context
|
||||
tempContext = context
|
||||
context = savedContext
|
||||
savedContext = tempContext
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user