From 001ac398a64fc6c1feeb6a74e439e83afb0d1d67 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 28 Jul 2014 23:45:30 +0100 Subject: functions: Fix dryrun support for updating of hdlists. --- functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions b/functions index 441eb0a..5f0ae18 100644 --- a/functions +++ b/functions @@ -62,7 +62,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_distro_hdlist() @@ -85,16 +85,16 @@ function update_distro_hdlist() function update_common_MD5SUM() { - distrorelease="$1" + release="$1" for arch in $arches; do - pushd "$distribdir/$distrorelease/$arch/media/media_info" - /usr/bin/md5sum hdlist_* synthesis.* > MD5SUM + pushd "$distribdir/$release/$arch/media/media_info" + $dryrun /bin/sh -c "/usr/bin/md5sum hdlist_* synthesis.* >MD5SUM" popd done } function mirror_repository() { - distrorelease="$1" - /usr/bin/rsync $mirror_rsync_options "$distribdir/$distrorelease/" "$finaldistribdir/$distrorelease/" + release="$1" + /usr/bin/rsync $mirror_rsync_options "$distribdir/$release/" "$finaldistribdir/$release/" } -- cgit v1.2.1