pacman/scripts
Eli Schwartz 4778f13188 repo-remove: fix removing packages with deltas
We have code in order to remove deltas when removing a package, but it
is never run, since we try to remove the wrong file.

This was broken in commit cb0f2bd038 which
modified the internal layout we use to modify the db, changing "tree" to
"db", but did not update all locations where it was used.

This worked swimmingly well as long as only repo-add updates were
handling the backup and restore of the delta file, as the delta file
therefore got backed up to the correct location (db) in the shared
db_remove_entry() function.

But later on in the repo-remove logic, we tried removing a different
file that will never exist (tree).

Fixes FS#53041

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-01-04 11:14:52 +10:00
..
completion bash-completion: disable completions for pacman --search operations 2018-10-21 19:33:57 +10:00
libmakepkg meson: remove useless mkdir -p 2018-12-12 10:12:41 +10:00
library scripts/library: fix typo in README 2018-12-10 11:12:27 +10:00
po buildsys: remove size_to_human 2018-11-27 22:48:43 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am scripts: make repo-add utilize a wrapper as well 2018-11-28 11:06:12 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in Split prepare_buildenv() to libmakepkg 2018-11-27 22:48:43 +10:00
meson.build scripts/meson: ensure wrapper scripts are executable 2018-11-27 22:48:43 +10:00
pacman-db-upgrade.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
pacman-key.sh.in pacman-key: just accept one file to verify, and enforce detached sigs 2018-11-03 21:56:09 +10:00
pkgdelta.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
repo-add.sh.in repo-remove: fix removing packages with deltas 2019-01-04 11:14:52 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00