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

requires(package1).or(package2) does not work #382

Open
algorithmWithPython opened this issue Sep 22, 2020 · 1 comment
Open

requires(package1).or(package2) does not work #382

algorithmWithPython opened this issue Sep 22, 2020 · 1 comment

Comments

@algorithmWithPython
Copy link

in this doc https://github.com/nebula-plugins/gradle-ospackage-plugin/wiki/Deb-Plugin, it mentions that requires can be used as:
requires(String packageName, String version, int flag).or(String packageName, String version, int flag)

In my code, I did:
requires('openjdk11-xxx').or('jdk1.8-xxx')

When I tried to install the rpm, I got:
sudo rpm -Uvh xxx-4.18.1.xxx.1.2.1-xxx.noarch.rpm error: Failed dependencies: openjdk11-xxx is needed by xxx-0:4.18.1.xxx.1.2.1-xxx99.noarch

I do have jdk1.8-xxx installed on this test machine.

@algorithmWithPython
Copy link
Author

ok. I am using rpm instead of Deb. from the doc, rpm seems do not support or. If this is the case, you can close this one. thanks.

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

No branches or pull requests

1 participant