diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-08 03:53:12 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-08 03:53:12 +0300 |
commit | a469686dd808d8b608abe75e2a604fe632a4eb2e (patch) | |
tree | 712dd128bfb3e83f41a6c40ae596fabf92ff05fc | |
parent | Initial progress on dispatch testing (diff) | |
download | pomu-a469686dd808d8b608abe75e2a604fe632a4eb2e.tar.gz pomu-a469686dd808d8b608abe75e2a604fe632a4eb2e.tar.bz2 pomu-a469686dd808d8b608abe75e2a604fe632a4eb2e.zip |
Actually return Result.Ok when a package is found
-rw-r--r-- | pomu/source/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pomu/source/manager.py b/pomu/source/manager.py index 2847547..7f34679 100644 --- a/pomu/source/manager.py +++ b/pomu/source/manager.py @@ -73,7 +73,7 @@ class PackageDispatcher(): for priority, source, handler in self.handlers: res = handler(uri) if res.is_ok(): - return source.fetch_package(res.ok()) + return Result.Ok(source.fetch_package(res.ok())) return Result.Err('No handler found for package ' + uri) def install_package(self, uri): |