[Rpm-maint] [rpm-software-management/rpm] Enhance requires with version information from the build root. (PR #2372)

Gordon Messmer notifications at github.com
Sun Jan 29 19:09:15 UTC 2023


@gordonmessmer commented on this pull request.



> @@ -0,0 +1,15 @@
+#!/bin/sh
+
+version_deps () {
+	while read dep
+	do
+		if [[ "${dep}" =~ ^[^\(]*\(\) ]] && rpm -q --whatprovides "${dep}" &> /dev/null
+		then
+			printf "($dep with %s)\n" "$(rpm -q --whatprovides "${dep}" --qf '%{NAME} >= %{VERSION}')"
+		else
+			printf "%s\n" "${dep}"
+		fi
+	done
+}
+
+/usr/lib/rpm/find-requires | version_deps

The find-requires script, for example, does the same thing.   It calls "/usr/lib/rpm/rpmdeps".

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

Message ID: <rpm-software-management/rpm/pull/2372/review/1274282406 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230129/456583e8/attachment.html>


More information about the Rpm-maint mailing list