Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve command emmitter in dnf-automatic #1624

Merged

Conversation

szpak
Copy link
Contributor

@szpak szpak commented May 11, 2020

I'm not sure why, but #635 seems to miss some code which prevents the usage of the Command emitter in dnf-automatic. They could be some code lost on rebase or something, but trying to make it work on my system, it turned out the following changes are required.

There are still some things which could be improved (such as explaining why output.list_transaction(trans, total_width=80) still generates output with 120 characters, but it's outside the scope of that PR which just makes the command emmiter possible to use.

Btw, I'm not a Python programmer, so please tell me if there is something done in the non idiomatic way.

@szpak
Copy link
Contributor Author

szpak commented May 17, 2020

@ignatenkobrain, @rhn As the people involved in #635 maybe you could review this PR?

@rhn
Copy link
Contributor

rhn commented May 21, 2020

From the point of view of someone no longer knowing the codebase intimately, this looks fine. The __init__ method was indeed missing for some reason.

What's still missing is the conf section, like this: https://github.com/rpm-software-management/dnf/pull/635/files#diff-d7fc665d559dc9ef30fccc4b33200a13R51

@szpak
Copy link
Contributor Author

szpak commented May 30, 2020

@rhn Thanks for you comment, but unfortunately I didn't get it. The aforementioned /etc/dnf/automatic.conf already contains that section. Where it should be added?

@rhn
Copy link
Contributor

rhn commented May 30, 2020

Somehow I didn't notice that the section already exists. Never mind.

@lukash
Copy link
Contributor

lukash commented Jun 25, 2020

Seems to work 🙂 Thanks and sorry about the delay.

@lukash lukash merged commit b05bda4 into rpm-software-management:master Jun 25, 2020
@szpak szpak deleted the automaticCommandFix branch June 25, 2020 13:05
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.

3 participants