mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Update comments
This commit is contained in:
parent
52f8bef4c9
commit
a874307334
1 changed files with 9 additions and 6 deletions
|
@ -40,7 +40,7 @@ class Utils(object):
|
||||||
|
|
||||||
def remove_dbs(self, double):
|
def remove_dbs(self, double):
|
||||||
"""
|
"""
|
||||||
Remove douuble item from list
|
Remove double item from list
|
||||||
"""
|
"""
|
||||||
one = []
|
one = []
|
||||||
for dup in double:
|
for dup in double:
|
||||||
|
@ -50,7 +50,7 @@ class Utils(object):
|
||||||
|
|
||||||
def read_file(self, registry):
|
def read_file(self, registry):
|
||||||
"""
|
"""
|
||||||
Return reading file
|
Returns reading file
|
||||||
"""
|
"""
|
||||||
with open(registry, "r") as file_txt:
|
with open(registry, "r") as file_txt:
|
||||||
read_file = file_txt.read()
|
read_file = file_txt.read()
|
||||||
|
@ -59,7 +59,7 @@ class Utils(object):
|
||||||
|
|
||||||
def package_name(self, PACKAGES_TXT, repo):
|
def package_name(self, PACKAGES_TXT, repo):
|
||||||
"""
|
"""
|
||||||
Return PACKAGE NAME
|
Returns list with all the names of packages repository
|
||||||
"""
|
"""
|
||||||
packages = []
|
packages = []
|
||||||
for line in PACKAGES_TXT.splitlines():
|
for line in PACKAGES_TXT.splitlines():
|
||||||
|
@ -72,7 +72,8 @@ class Utils(object):
|
||||||
|
|
||||||
def check_downloaded(self, path, maybe_downloaded):
|
def check_downloaded(self, path, maybe_downloaded):
|
||||||
"""
|
"""
|
||||||
Return downloaded packages
|
Check if files downloaded and return downloaded
|
||||||
|
packages
|
||||||
"""
|
"""
|
||||||
downloaded = []
|
downloaded = []
|
||||||
for pkg in maybe_downloaded:
|
for pkg in maybe_downloaded:
|
||||||
|
@ -82,7 +83,8 @@ class Utils(object):
|
||||||
|
|
||||||
def read_file_pkg(self, file_pkg):
|
def read_file_pkg(self, file_pkg):
|
||||||
"""
|
"""
|
||||||
Return packages from file
|
Read file.pkg and return packages name
|
||||||
|
from file
|
||||||
"""
|
"""
|
||||||
packages = []
|
packages = []
|
||||||
if os.path.isfile(file_pkg):
|
if os.path.isfile(file_pkg):
|
||||||
|
@ -96,7 +98,8 @@ class Utils(object):
|
||||||
|
|
||||||
def read_config(self, config):
|
def read_config(self, config):
|
||||||
"""
|
"""
|
||||||
Read config file and return uncomment line
|
Read config file and returns first uncomment line
|
||||||
|
and stop. Used for Slackware mirrors
|
||||||
"""
|
"""
|
||||||
for line in config.splitlines():
|
for line in config.splitlines():
|
||||||
line = line.lstrip()
|
line = line.lstrip()
|
||||||
|
|
Loading…
Add table
Reference in a new issue