Rename variable

This commit is contained in:
Dimitris Zlatanidis 2024-03-23 21:19:48 +02:00
parent e6d1cbdde9
commit 4b301b5761

View file

@ -25,9 +25,9 @@ class Upgrade(Configs):
def packages(self) -> Generator:
""" Returns the upgradable packages. """
repo_tag: str = self.repos.repositories[self.repository]['repo_tag']
installed_package: Generator = self.log_packages.glob(f'*{repo_tag}')
installed_packages: Generator = self.log_packages.glob(f'*{repo_tag}')
for installed in installed_package:
for installed in installed_packages:
name: str = self.utils.split_package(installed.name)['name']
if self.is_package_upgradeable(installed.name):
yield name