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

Remove --sign from rpmbuild #1027

Merged
merged 1 commit into from Jan 31, 2020
Merged

Conversation

ffesti
Copy link
Contributor

@ffesti ffesti commented Jan 30, 2020

When splitting rpmsign from rpmbuild this command line parameter was kept
as an popt alias. But this limits what other parameter can be passed to
the rpmsign command in a difficult to understand way. In the end everyone
is better off using the rpmsign command directly.

Issue a error message stating the parameter is no longer supported

Resolves: #153

@pmatilai
Copy link
Member

Hmm, can we exit with an error code there, to avoid any scripts etc thinking all was fine?

@ffesti
Copy link
Contributor Author

ffesti commented Jan 30, 2020

I tried that but didn't get it to work. I'd also like to swallow the other cli arguments. Looks like the command is executed without a shell so what can be done easily is limited.

@pmatilai
Copy link
Member

How about this instead:

rpmbuild alias --sign --eval "%{error:rpmbuild --sign is no longer supported. Use the rpmsign command instead!}"

...which gives you both error on stderr, and a non-zero exit code:

$ rpmbuild -bb --sign foo.spec; echo $?
error: rpmbuild --sign is no longer supported. Use the rpmsign command instead!
1

When splitting rpmsign from rpmbuild this command line parameter was kept
as an popt alias. But this limits what other parameter can be passed to
the rpmsign command in a difficult to understand way. In the end everyone
is better off using the rpmsign command directly.

Issue a error message stating the parameter is no longer supported and
exit rpmbuild.

Resolves: rpm-software-management#153
@ffesti
Copy link
Contributor Author

ffesti commented Jan 31, 2020

Yup, pushed.

@pmatilai pmatilai merged commit 8896e81 into rpm-software-management:master Jan 31, 2020
@ffesti ffesti deleted the 153 branch January 31, 2020 13:55
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.

Can't use --define "_gpg_name Foo" any more
3 participants