diff options
author | Allan McRae <allan@archlinux.org> | 2010-11-23 14:57:58 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 00:26:54 -0500 |
commit | 93591d428fa553a03fee1f63228311f92e85d1ed (patch) | |
tree | 72f64828f308b0e61b9e937dc0185e8699a74103 /scripts/repo-add.sh.in | |
parent | f0f83197694edb055b074a4b339e07c31627205c (diff) | |
download | pacman-93591d428fa553a03fee1f63228311f92e85d1ed.tar.xz |
repo-add: add symlink to signature file
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r-- | scripts/repo-add.sh.in | 5 |
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 |