diff options
author | Allan McRae <allan@archlinux.org> | 2010-05-27 23:47:18 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-27 09:19:13 -0500 |
commit | 5dffef787df72cc407708242d14f07496bb37791 (patch) | |
tree | ef261ecf9486df814b0c820dedafc7be3e2b9843 /scripts | |
parent | fe1e3471f47d9da3bac4cedce250cd2ce04368b4 (diff) |
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')
-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 |