mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-07 17:24:57 +01:00
Update doc strings
This commit is contained in:
parent
8987d1d40c
commit
485f52fe5d
1 changed files with 6 additions and 2 deletions
|
@ -30,8 +30,8 @@ from __metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
|
|
||||||
class Auto(object):
|
class Auto(object):
|
||||||
"""Select Slackware command to install packages"""
|
"""Select Slackware command to install packages
|
||||||
|
"""
|
||||||
def __init__(self, packages):
|
def __init__(self, packages):
|
||||||
self.packages = packages
|
self.packages = packages
|
||||||
self.meta = _meta_
|
self.meta = _meta_
|
||||||
|
@ -42,6 +42,8 @@ class Auto(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
def select(self):
|
def select(self):
|
||||||
|
"""Select Slackware command
|
||||||
|
"""
|
||||||
print("\nDetected Slackware binary package for installation:\n")
|
print("\nDetected Slackware binary package for installation:\n")
|
||||||
for pkg in self.packages:
|
for pkg in self.packages:
|
||||||
print(" " + pkg.split("/")[-1])
|
print(" " + pkg.split("/")[-1])
|
||||||
|
@ -68,6 +70,8 @@ class Auto(object):
|
||||||
self.execute()
|
self.execute()
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
|
"""Execute Slackware command
|
||||||
|
"""
|
||||||
if self.choice in self.commands.keys():
|
if self.choice in self.commands.keys():
|
||||||
if self.choice == "i":
|
if self.choice == "i":
|
||||||
PackageManager(self.packages).install("")
|
PackageManager(self.packages).install("")
|
||||||
|
|
Loading…
Reference in a new issue