mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Add unused fuction
This commit is contained in:
parent
02d026b7fd
commit
9a53004b9d
1 changed files with 15 additions and 0 deletions
|
@ -166,6 +166,21 @@ class PackageManager(object):
|
|||
Msg().template(78)
|
||||
return dependencies
|
||||
|
||||
def _clean_logs(self, package):
|
||||
"""Clean logs for removed packages.
|
||||
THIS FUNCTION IS NOT USED
|
||||
"""
|
||||
files = find_package("", self.dep_path)
|
||||
for f in files:
|
||||
fo = open(self.dep_path + f, "r")
|
||||
fr = fo.read()
|
||||
fo.close()
|
||||
if package in fr:
|
||||
with open(self.dep_path + f, "w") as fopen:
|
||||
for line in fr.splitlines():
|
||||
if package != line:
|
||||
fopen.write(line + "\n")
|
||||
|
||||
def _removepkg(self, package):
|
||||
"""removepkg Slackware command
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue