[Rpm-maint] [rpm-software-management/rpm] fileattrs: Tighten pythondist path regex for metadata (RhBug:1618949) (#562)

Igor Gnatenko notifications at github.com
Tue Oct 2 15:23:41 UTC 2018


ignatenkobrain commented on this pull request.



> @@ -1,3 +1,3 @@
 %__pythondist_provides	%{_rpmconfigdir}/pythondistdeps.py --provides --majorver-provides
 %__pythondist_requires	%{_rpmconfigdir}/pythondistdeps.py --requires
-%__pythondist_path		/lib(64)?/python[[:digit:]]\\.[[:digit:]]/.*\\.(dist.*|egg.*)$
+%__pythondist_path		/lib(64)?/python[[:digit:]]\\.[[:digit:]]+/site-packages/[^/]*\\.(dist-info|egg-info|egg-link)$

so to be fully correct, I would change `[^/]*` → `[^/]+` because this would match `/usr/lib64/python3.7/site-packages/.dist-info`. Not that it's good idea to have such file, but whatever ;)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/562#discussion_r221996970
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181002/7e0ecd93/attachment.html>


More information about the Rpm-maint mailing list