summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-08-16 05:55:00 +0200
committerDan McGee <dan@archlinux.org>2011-08-16 16:25:10 +0200
commitf41dc7e8fac63dfb0b201e2aecec4b5bcc66749f (patch)
tree166501e138082141a36858637a4e43a17fabd518 /scripts
parent11757028283fece3bdd8442a422e46324ed531bb (diff)
downloadpacman-f41dc7e8fac63dfb0b201e2aecec4b5bcc66749f.tar.gz
pacman-f41dc7e8fac63dfb0b201e2aecec4b5bcc66749f.tar.xz
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 <bisson@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
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"