[Rpm-maint] [rpm-software-management/rpm] Add support for generating buildinfo file as subpackage (#1532)
Panu Matilainen
notifications at github.com
Thu Sep 1 13:02:54 UTC 2022
@pmatilai commented on this pull request.
> +# in this Software without prior written authorization of the copyright holder.
+#
+
+set -e -o pipefail
+
+getos() {
+ # shellcheck disable=SC1091
+ test -r /etc/os-release && . /etc/os-release
+ if test -z "${ID}"; then
+ ID="$(cat /etc/system-release)"
+ fi
+ printf '%s' "${ID}"
+}
+
+RPM_BUILD_ROOT="$1"
+RPM_BUILD_DIR="$2"
Note that I suggested putting it into "an src.rpm like package", which would be a separate (sub-)package, but not necessarily a regular *binary* package which is expected to be installed, nor the main src.rpm (which would be the right place from rpm POV in many ways but not so much for the practical world). The main package is indeed the wrong place for it for various reasons.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1532#discussion_r960627556
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1532/review/1093355052 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220901/70941fff/attachment.html>
More information about the Rpm-maint
mailing list