rpmck 1.39 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh
#!/bin/sh
# 2017 (c) Etersoft http://etersoft.ru
# Author: Ivan Zakharyaschev <imz@altlinux.org>
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain

# Based on https://bugzilla.altlinux.org/show_bug.cgi?id=33972#c5

# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common

load_mod alt hasher

if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
16
	echo "rpmck [-b REPONAME] <packages> - check built packages locally"
17 18 19 20 21 22 23 24 25 26 27
	echo "Examples:"
	echo "  $ rpmck -b p8 python-module-PyQt5"
	exit 0
fi

BINARYREPONAME=""
if [ "$1" = "-b" ] ; then
	BINARYREPONAME="$2"
	shift 2
fi

28 29
# see functions/alt:set_binaryrepo() for BINARYREPONAME
set_binaryrepo $MENV
30 31 32

set_hasherdir

33 34
info "This is an experimental code"

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# export OURAPTCONF with temp. file contains correct path to sources.list
# use MENV
prepare_aptconfig
#$OURAPTCONF

# TODO: add support for test remote task
#$ apt-repo --hsh-apt-config=/home/imz/.hasher/sisyphus/apt.conf add 190330
#$ apt-repo --hsh-apt-config=/home/imz/.hasher/sisyphus/apt.conf test '' python3-module-sip python3-module-PyQt5

# add local repo
#hsh-run --mount=/proc,/dev/pts $HASHERDIR /usr/lib/rpm/check-python3-provs-importable.sh "$@"
info "install $*"
$ETERBUILDBIN/loginhsh -i -t -b $BINARYREPO -q "$@"
info "run checking"
$ETERBUILDBIN/loginhsh -i -t -b $BINARYREPO -q -r "/usr/lib/rpm/check-python3-provs-importable.sh $@"