diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index c6179f55..fafc4a22 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -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