aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-10-19 23:16:26 +0000
committerNicolas Vigier <boklm@mageia.org>2011-10-19 23:16:26 +0000
commitcc431727f1d63b3941f59992257180dbd9b1fb67 (patch)
tree831214da5ddbe6bed1bad83a6204e62f6b0f24aa
parent2b0ba3c583349887865a8183c43e7aebb8ba3ac4 (diff)
downloadrepoctl-cc431727f1d63b3941f59992257180dbd9b1fb67.tar
repoctl-cc431727f1d63b3941f59992257180dbd9b1fb67.tar.gz
repoctl-cc431727f1d63b3941f59992257180dbd9b1fb67.tar.bz2
repoctl-cc431727f1d63b3941f59992257180dbd9b1fb67.tar.xz
repoctl-cc431727f1d63b3941f59992257180dbd9b1fb67.zip
don't update hdlists and MD5SUM files if dryrun is set
-rw-r--r--functions7
1 files 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
}