diff options
author | Allan McRae <allan@archlinux.org> | 2010-05-27 15:47:18 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-27 16:19:13 +0200 |
commit | 5dffef787df72cc407708242d14f07496bb37791 (patch) | |
tree | ef261ecf9486df814b0c820dedafc7be3e2b9843 /scripts/repo-add.sh.in | |
parent | fe1e3471f47d9da3bac4cedce250cd2ce04368b4 (diff) | |
download | pacman-5dffef78.tar.gz pacman-5dffef78.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>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r-- | scripts/repo-add.sh.in | 1 |
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 |