aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}