| Server IP : 172.67.134.114 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/bin/ |
Upload File : |
#!/bin/bash
set -e
case "${1}" in
-h|--help)
echo "Usage: ${0} [build.log | Koji-task-ID]"
exit 0
;;
esac
if [ ${#} -eq 0 ]; then
cfg=$(basename $(readlink -f /etc/mock/default.cfg))
set "/var/lib/mock/${cfg%.cfg}/result/build.log"
fi
case "${1}" in
[0-9][0-9][0-9][0-9][0-9][0-9][0-9])
cmd="curl -s"
p="${1#???}"
p="${p#0}"
p="${p#0}"
p="${p#0}"
set "http://kojipkgs.fedoraproject.org/work/tasks/${p}/${1}/build.log"
;;
*)
if [ -f "${1}" ]; then
cmd="cat"
else
echo "${0}: Unable to open file: ${1}" >&2
exit 1
fi
;;
esac
$cmd "${1}" \
| sed -n '
/^-----BEGIN MAVEN BUILD DEPENDENCIES-----$/ {
:l
n
/^-----END MAVEN BUILD DEPENDENCIES-----$/ {
s/.*//
x
s/\n//g
p
b
}
H
bl
}' \
| tail -1 \
| base64 -d \
| zcat \
| /usr/libexec/platform-python /usr/share/java-utils/builddep.py /dev/stdin \
| sort -u \
| (echo maven-local && cat) \
| sed 's/./BuildRequires: &/' \