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

Download rpm package on RedHat-based Linux #2431

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

devinbileck
Copy link
Member

Currently, the download update task will download the deb package for
any Linux distribution. Not only is this incorrect, but now that we are
able to provide an rpm package (see #2200), the download update task
needs to be able to differentiate Linux distributions and provide
the appropriate package.

The download update task will now differentiate between Debian and
RedHat based distributions (the two distributions for which we have an
install package) and download the appropriate package.

In addition, the isSupportedOS method was changed to exclusively check
for Debian and RedHat based distributions, as opposed to just Linux in
general. This means that any other distribution will encounter the
following error, which seems appropriate:

Unable to determine the correct installer. Please download and verify
manually at https://bisq.network/downloads

Currently, the download update task will download the deb package for
any Linux distribution. Not only is this incorrect, but now that we are
able to provide an rpm package (see bisq-network#2200), the download update task
needs to be able to differentiate Linux distributions and provide
the appropriate package.

The download update task will now differentiate between Debian and
RedHat based distributions (the two distributions for which we have an
install package) and download the appropriate package.

In addition, the isSupportedOS method was changed to exclusively check
for Debian and RedHat based distributions, as opposed to just Linux in
general. This means that any other distribution will encounter the
following error, which seems appropriate:

> Unable to determine the correct installer. Please download and verify
manually at https://bisq.network/downloads
@devinbileck
Copy link
Member Author

This is still a work in progress as I need to test my method of determining the appropriate distributions. If anyone is able to test on some distributions, that would be appreciated!

@devinbileck
Copy link
Member Author

I have tested this and it properly downloads the deb on Ubuntu 18.04. I was going to test on Fedora 29, but encountered #2279. I did verify the /etc/redhat-release file exists so this should work :)

@devinbileck devinbileck marked this pull request as ready for review February 19, 2019 19:03
@devinbileck devinbileck changed the title [WIP] Download rpm package on RedHat-based Linux Download rpm package on RedHat-based Linux Feb 20, 2019
@ManfredKarrer
Copy link
Contributor

Is this ready for merge despite #2279?

@devinbileck
Copy link
Member Author

Yes it is ready for merge.

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

@ManfredKarrer ManfredKarrer merged commit 9aa58a9 into bisq-network:master Feb 21, 2019
@devinbileck devinbileck deleted the download-rpm-package branch February 21, 2019 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants