mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Fix check deps if exist
This commit is contained in:
parent
9a53004b9d
commit
c784ff7f46
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ import subprocess
|
||||||
from slpkg.utils import Utils
|
from slpkg.utils import Utils
|
||||||
from slpkg.messages import Msg
|
from slpkg.messages import Msg
|
||||||
from slpkg.splitting import split_package
|
from slpkg.splitting import split_package
|
||||||
|
from slpkg.installed import GetFromInstalled
|
||||||
from slpkg.__metadata__ import MetaData as _meta_
|
from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
from slpkg.pkg.find import find_package
|
from slpkg.pkg.find import find_package
|
||||||
|
@ -239,7 +240,7 @@ class PackageManager(object):
|
||||||
for pkg in find_package("", self.dep_path):
|
for pkg in find_package("", self.dep_path):
|
||||||
deps = Utils().read_file(self.dep_path + pkg)
|
deps = Utils().read_file(self.dep_path + pkg)
|
||||||
for rmv in removes:
|
for rmv in removes:
|
||||||
if rmv in deps.split():
|
if GetFromInstalled(rmv).name() and rmv in deps.split():
|
||||||
view = True
|
view = True
|
||||||
package.append(pkg)
|
package.append(pkg)
|
||||||
dependency.append(rmv)
|
dependency.append(rmv)
|
||||||
|
|
Loading…
Reference in a new issue