mirror of
https://github.com/fastogt/pyfastogt
synced 2025-03-09 23:38:55 +00:00
Typo
This commit is contained in:
parent
f792c89c59
commit
33f0dfd83d
1 changed files with 2 additions and 8 deletions
|
@ -65,7 +65,7 @@ class SupportedPlatforms(metaclass=ABCMeta):
|
|||
return None
|
||||
|
||||
@abstractmethod
|
||||
def make_platform_by_arch(self, arch, package_types) -> Platform:
|
||||
def make_platform_by_arch(self, arch, package_types) -> Platform: # factory method
|
||||
pass
|
||||
|
||||
def make_platform_by_arch_name(self, arch_name) -> Platform:
|
||||
|
@ -117,15 +117,9 @@ class LinuxPlatforms(SupportedPlatforms):
|
|||
SupportedPlatforms.__init__(self, 'linux', [Architecture('x86_64', 64, '/usr/local'),
|
||||
Architecture('i386', 32, '/usr/local'),
|
||||
Architecture('armv7l', 32, '/usr/local')], ['DEB', 'RPM', 'TGZ'])
|
||||
distribution_ = None
|
||||
|
||||
def distribution(self) -> str:
|
||||
if not self.distribution_:
|
||||
self.distribution_ = linux_get_dist()
|
||||
return self.distribution_
|
||||
|
||||
def make_platform_by_arch(self, arch, package_types) -> Platform:
|
||||
distr = self.distribution()
|
||||
distr = linux_get_dist()
|
||||
if distr == 'DEBIAN':
|
||||
return DebianPlatform(arch, package_types)
|
||||
elif distr == 'RHEL':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue