summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-07-28 23:45:30 +0100
committerColin Guthrie <colin@mageia.org>2014-07-29 01:42:38 +0100
commit001ac398a64fc6c1feeb6a74e439e83afb0d1d67 (patch)
treeb528e770111b3ecf9e901b63dc6328c2180fa7f3 /functions
parent29a5fca67c79bb7bfc7e7b3002d1be4eee607203 (diff)
downloadmgatools-001ac398a64fc6c1feeb6a74e439e83afb0d1d67.tar
mgatools-001ac398a64fc6c1feeb6a74e439e83afb0d1d67.tar.gz
mgatools-001ac398a64fc6c1feeb6a74e439e83afb0d1d67.tar.bz2
mgatools-001ac398a64fc6c1feeb6a74e439e83afb0d1d67.tar.xz
mgatools-001ac398a64fc6c1feeb6a74e439e83afb0d1d67.zip
functions: Fix dryrun support for updating of hdlists.
Diffstat (limited to 'functions')
-rw-r--r--functions12
1 files 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/"
}