summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-06-22 23:05:55 +0000
committerNicolas Vigier <boklm@mageia.org>2011-06-22 23:05:55 +0000
commit0e6bfed3df93dbda8d8a3c2faba4c027593525ec (patch)
tree4f40d433d4467ea5cf25bc00386bdb3c05256fa5
parentbb0655af283b7a10b31d4d32ebd7c6f980524fff (diff)
downloadmgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar
mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.gz
mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.bz2
mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.xz
mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.zip
only add --file-deps if file exists
-rw-r--r--functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions b/functions
index 418bf6f..5a58084 100644
--- a/functions
+++ b/functions
@@ -31,7 +31,9 @@ function inlist()
function update_hdlist()
{
repository="$1"
- /usr/bin/genhdlist2 -v --versioned --allow-empty-media --file-deps "$repository/../../media_info/file-deps" "$repository"
+ fdeps="$repository/../../media_info/file-deps"
+ test -f "$fdeps" && ofdeps="--file-deps $fdeps"
+ /usr/bin/genhdlist2 -v --versioned --allow-empty-media $ofdeps "$repository"
}
function update_common_MD5SUM()