run rpms2solv only if something got downloaded
This commit is contained in:
parent
1214bbe0d9
commit
1f29e4f102
6
create_test_dvds.sh
Normal file → Executable file
6
create_test_dvds.sh
Normal file → Executable 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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user