mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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>
This commit is contained in:
parent
fe1e3471f4
commit
5dffef787d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user