Skip to content

Conversation

inhumanitas
Copy link

No description provided.

skip_already_installed = (
'rpm -qi {package} ||'
)
for name in self.test_packages:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have we gone from name in test_packages.keys(): to test_packages: ??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for-loop itself unpacks keys from dict, so calling .keys() is overhead for iterating dict keys

install_comm = ['zypper', '-vv', 'in', '-y', '-f', '--force-resolution']
install_comm.extend(packages)
self.commands.ssh(install_comm)
self.commands.ssh(pre_check+install_comm)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like it will result in a command like:
rpm -qi pkgA ||rpm -qi pkgB ||rpm -qi pkgC || zypper', -vv -in -y -f --force-resolution pkgA pkgB pkgC pkgD pkgE

That won't install pkgD or pkgE because pkgA is installed and it will abort
Is that the intention?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants