summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-05-27 15:47:18 +0200
committerDan McGee <dan@archlinux.org>2010-05-27 16:19:13 +0200
commit5dffef787df72cc407708242d14f07496bb37791 (patch)
treeef261ecf9486df814b0c820dedafc7be3e2b9843
parentfe1e3471f47d9da3bac4cedce250cd2ce04368b4 (diff)
downloadpacman-5dffef787df72cc407708242d14f07496bb37791.tar.gz
pacman-5dffef787df72cc407708242d14f07496bb37791.tar.xz
repo-add: symlink to db file to reponame.db
This is a small step towards allowing pacman to handle databases with variable compression types. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/repo-add.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 0e46c371..7bde6007 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -487,6 +487,7 @@ if (( success )); then
[[ -f $REPO_DB_FILE ]] && mv -f "$REPO_DB_FILE" "${REPO_DB_FILE}.old"
[[ -f $tmpdir/$filename ]] && mv "$tmpdir/$filename" "$REPO_DB_FILE"
+ ln -sf "$REPO_DB_FILE" "${REPO_DB_FILE%.tar.*}"
else
msg "$(gettext "No packages modified, nothing to do.")"
exit 1