/
githubmirror
/
rpm
Обзор
Документация
Войти
/
githubmirror
/
rpm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/setup.sh
32 строки
897 B
Panu Matilainen
Move rpm-setup-autosign to a standard path
31 мар 2026, 12:34
31 мар 2026, 12:34
1f554d1
Код
Авторство
О чём код?
#!/bin/bash # Setup the environment in the test-image. # Runs INSIDE the image, with our newly built rpm in the path. # Make sure nobody runs this accidentally outside the environment if [ ! -f /.rpmtestsuite ]; then echo "Not inside rpm test-suite image" exit 99 fi mkdir -p /build ln -sf ../data/SOURCES /build/ # system-wide config to match our test environment cp /data/macros.testenv @CMAKE_INSTALL_FULL_SYSCONFDIR@/rpm/ # setup an empty db that all tests are pointed to by default rpmdb --initdb # set up new-style XDG config directory rpmhome=/root/.config/rpm mkdir -p ${rpmhome} # gpg-connect-agent is very, very unhappy if this doesn't exist mkdir -p /root/.gnupg chmod 700 /root/.gnupg # setup default signing id + key (USER is not set when this runs!) rpmconf=$(rpm --eval "%{_rpmconfigdir}") USER=root rpm-setup-autosign -p sq rpmkeys --import /root/.config/rpm/*.asc