From cc431727f1d63b3941f59992257180dbd9b1fb67 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 19 Oct 2011 23:16:26 +0000 Subject: don't update hdlists and MD5SUM files if dryrun is set --- functions | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 950340c..33f9321 100644 --- a/functions +++ b/functions @@ -33,7 +33,7 @@ function update_hdlist() repository="$1" fdeps="$repository/../../media_info/file-deps" test -f "$fdeps" && ofdeps="--file-deps $fdeps" - /usr/bin/genhdlist2 -v --versioned --allow-empty-media $ofdeps "$repository" + $dryrun /usr/bin/genhdlist2 -v --versioned --allow-empty-media $ofdeps "$repository" } function update_hdlists() @@ -132,7 +132,10 @@ function update_common_MD5SUM() for arch in $arches do pushd "$distribdir/$distrorelease/$arch/media/media_info" - /usr/bin/md5sum hdlist_* synthesis.* > MD5SUM + if [ -z "$dryrun" ] + then + /usr/bin/md5sum hdlist_* synthesis.* > MD5SUM + fi popd done } -- cgit v1.2.1