Server IP : 162.241.126.129 / Your IP : 3.23.101.241 Web Server : Apache System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64 User : rvway5nu4 ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/rpm/ |
Upload File : |
#!/bin/bash [ $# -ge 1 ] || { cat > /dev/null exit 0 } case $1 in -P|--provides) shift # Match buildroot/payload paths of the form # /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR # generating a line of the form # python(abi) = MAJOR.MINOR # (Don't match against -config tools e.g. /usr/bin/python2.6-config) grep "/usr/bin/python.\..$" \ | sed -e "s|.*/usr/bin/python\(.\..\)|python(abi) = \1|" ;; -R|--requires) shift # Match buildroot paths of the form # /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/ and # /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/ # generating (uniqely) lines of the form: # python(abi) = MAJOR.MINOR grep -E "/usr/lib[^/]*/python[[:digit:]]+\.[[:digit:]]+/.*" \ | sed -Ee "s|.*/usr/lib[^/]*/python([[:digit:]]+\.[[:digit:]]+)/.*|python(abi) = \1|g" \ | sort | uniq ;; esac exit 0