HEX
Server: nginx/1.22.1
System: Linux iZuf67d4hh2ssx30nkok6dZ 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //bin/xmvn-builddep
#!/bin/sh
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 \
    | python /usr/share/java-utils/builddep.py /dev/stdin \
    | sort -u \
    | (echo maven-local && cat) \
    | sed 's/./BuildRequires:  &/' \