summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-11-23 05:57:58 +0100
committerDan McGee <dan@archlinux.org>2011-03-23 06:26:54 +0100
commit93591d428fa553a03fee1f63228311f92e85d1ed (patch)
tree72f64828f308b0e61b9e937dc0185e8699a74103
parentf0f83197694edb055b074a4b339e07c31627205c (diff)
downloadpacman-93591d428fa553a03fee1f63228311f92e85d1ed.tar.gz
pacman-93591d428fa553a03fee1f63228311f92e85d1ed.tar.xz
repo-add: add symlink to signature file
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/repo-add.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index c55eac3f..76005757 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -584,6 +584,11 @@ if (( success )); then
ln -sf "$target" "$dblink" 2>/dev/null || \
ln -f "$target" "$dblink" 2>/dev/null || \
cp "$REPO_DB_FILE" "$dblink"
+ if [[ -f "$target.sig" ]]; then
+ ln -sf "$target.sig" "$dblink.sig" 2>/dev/null || \
+ ln -f "$target.sig" "$dblink.sig" 2>/dev/null || \
+ cp "$REPO_DB_FILE.sig" "$dblink.sig"
+ fi
else
msg "$(gettext "No packages modified, nothing to do.")"
exit 1