[Rpm-maint] [rpm-software-management/rpm] Making the os_release function more strict (PR #2657)

Dmitry Mikushin notifications at github.com
Wed Sep 13 00:14:20 UTC 2023


Making the `os_release` CMake function more strict:

1. Adding '=' to match pattern, because on Rocky Linux `/etc/os-release` contains not only `ID="rocky"`, but also `ID_LIKE="rhel centos fedora"`
2. Adding `'| xargs'`, because on Rocky Linux `ID="rocky"` line contains extra quotes
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2657

-- Commit Summary --

  * Making the os_release script more strict:

-- File Changes --

    M tests/CMakeLists.txt (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2657.patch
https://github.com/rpm-software-management/rpm/pull/2657.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2657
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2657 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230912/2b741c69/attachment.html>


More information about the Rpm-maint mailing list