[entropy.client] add new Spm_class method that returns default Spm class (instead of instance)
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
|
||||
"""
|
||||
from __future__ import with_statement
|
||||
from entropy.spm.plugins.factory import get_default_instance as get_spm
|
||||
from entropy.spm.plugins.factory import get_default_instance as get_spm, \
|
||||
get_default_class as get_spm_default_class
|
||||
from entropy.const import *
|
||||
from entropy.exceptions import *
|
||||
|
||||
@@ -71,5 +72,11 @@ class LoadersMixin:
|
||||
self.__spm_cache[myroot] = spm
|
||||
return spm
|
||||
|
||||
def Spm_class(self):
|
||||
"""
|
||||
Return Source Package Manager default plugin class.
|
||||
"""
|
||||
return get_spm_default_class()
|
||||
|
||||
def Package(self):
|
||||
return self.__PackageLoader(self)
|
||||
|
||||
Reference in New Issue
Block a user