run rpms2solv only if something got downloaded

This commit is contained in:
Ludwig Nussel 2014-09-10 17:23:46 +02:00
parent 1214bbe0d9
commit 1f29e4f102

6
create_test_dvds.sh Normal file → Executable file
View File

@ -69,7 +69,11 @@ function sync_prj() {
dir=$2
mkdir -p $dir
perl $SCRIPTDIR/bs_mirrorfull --nodebug https://build.opensuse.org/build/$prj/x86_64 $dir
rpms2solv $dir/*.rpm > $dir.solv
if [ "$dir" -nt "$dir.solv" ]; then
local start=$SECONDS
rpms2solv $dir/*.rpm > $dir.solv
echo "creating ${dir}.solv took $((SECONDS-$start))s"
fi
}
function start_creating() {