From f41dc7e8fac63dfb0b201e2aecec4b5bcc66749f Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 16 Aug 2011 13:55:00 +1000 Subject: repo-add: fix creation of signature symlink When creating a repo outside the current directory, the signature symlink was not created. Reported-by: Gaetan Bisson Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index fd0c8142..29b150c8 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -661,7 +661,7 @@ if (( success )); then ln -s "$target" "$dblink" 2>/dev/null || \ ln "$target" "$dblink" 2>/dev/null || \ cp "$REPO_DB_FILE" "$dblink" - if [[ -f "$target.sig" ]]; then + if [[ -f "$REPO_DB_FILE.sig" ]]; then ln -s "$target.sig" "$dblink.sig" 2>/dev/null || \ ln "$target.sig" "$dblink.sig" 2>/dev/null || \ cp "$REPO_DB_FILE.sig" "$dblink.sig" -- cgit v1.2.3-24-g4f1b