From 8d91ff2fc97db153a71e3373d9a14e2c8c184249a4faa5250a5006c0da64c630 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 8 Apr 2022 20:06:50 +0000 Subject: [PATCH] Accepting request 967914 from home:dimstar:Factory - Add PRETTY_NAME="openSUSE Dummy" to etc/os-release: scripts that rely on lsb_release to get the distributor_id will rely on 'openSUSE*' to be part of the PRETTY_NAME (seen in xpra for example). - Set NAME to 'openSUSE Dummy': xpra is one of the examples that extracts the distro from the name (which is wrong of course). OBS-URL: https://build.opensuse.org/request/show/967914 OBS-URL: https://build.opensuse.org/package/show/Base:System/dummy-release?expand=0&rev=17 --- dummy-release.changes | 10 ++++++++++ dummy-release.spec | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dummy-release.changes b/dummy-release.changes index 87ada06..3bde144 100644 --- a/dummy-release.changes +++ b/dummy-release.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 8 19:21:02 UTC 2022 - Dominique Leuenberger + +- Add PRETTY_NAME="openSUSE Dummy" to etc/os-release: scripts that + rely on lsb_release to get the distributor_id will rely on + 'openSUSE*' to be part of the PRETTY_NAME (seen in xpra for + example). +- Set NAME to 'openSUSE Dummy': xpra is one of the examples that + extracts the distro from the name (which is wrong of course). + ------------------------------------------------------------------- Mon Jan 10 08:42:47 UTC 2022 - Dominique Leuenberger diff --git a/dummy-release.spec b/dummy-release.spec index 73d08e6..a05070f 100644 --- a/dummy-release.spec +++ b/dummy-release.spec @@ -41,7 +41,8 @@ echo -e "\nWelcome to Dummy Product - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT echo -e "Welcome to Dummy Product (%{_target_cpu}) - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/issue.net touch $RPM_BUILD_ROOT/etc/motd -echo 'NAME=Dummy' > $RPM_BUILD_ROOT/etc/os-release +echo 'NAME="openSUSE Dummy"' > $RPM_BUILD_ROOT/etc/os-release +echo 'PRETTY_NAME="openSUSE Dummy"' >> $RPM_BUILD_ROOT/etc/os-release echo 'ID="suse"' >> $RPM_BUILD_ROOT/etc/os-release echo 'ID_LIKE="suse"' >> $RPM_BUILD_ROOT/etc/os-release echo 'VERSION_ID="Dummy"' >> $RPM_BUILD_ROOT/etc/os-release