Skip to content

Improve the way to detect the Distro #616

Open

Description

@jabrena

Currently, the way to detect the distro, is weak:

2018-12-09 19:00:07 [main] INFO  ev3dev.hardware.EV3DevDistros - Providing an EV3DevDistros instance
2018-12-09 19:00:07 [main] DEBUG ev3dev.utils.Shell - Command: cat /etc/os-release
2018-12-09 19:00:07 [main] WARN  ev3dev.hardware.EV3DevDistros - Failed to detect distro, falling back to Stretch.
2018-12-09 19:00:07 [main] DEBUG ev3dev.hardware.EV3DevDistros - Debian Stretch detected

In a local computer, we should return an exception except the class is mocked.

Activity

  1. modified the milestones: v1.0.0, v1.1.0 on Aug 18, 2019
  2. JakubVanek commented on Sep 6, 2019

    @JakubVanek
    Contributor

    ev3dev-buster is detected as Stretch for a similar reason; the issue could be tackled together with this improvement.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions