diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-10-19 23:16:26 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-10-19 23:16:26 +0000 |
commit | cc431727f1d63b3941f59992257180dbd9b1fb67 (patch) | |
tree | 831214da5ddbe6bed1bad83a6204e62f6b0f24aa | |
parent | 2b0ba3c583349887865a8183c43e7aebb8ba3ac4 (diff) | |
download | repoctl-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-- | functions | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 } |