From 5dffef787df72cc407708242d14f07496bb37791 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 27 May 2010 23:47:18 +1000 Subject: 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 Signed-off-by: Dan McGee --- scripts/repo-add.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2