Allan McRae pushed to branch master at Pacman / Pacman


Commits:
05307024 by Allan McRae at 2025-10-14T15:13:26+10:00
pactest: create hookdir

Signed-off-by: Allan McRae <[email protected]>

- - - - -
cf2e37c6 by Allan McRae at 2025-10-14T15:13:26+10:00
Add a helper function for resolving paths

Signed-off-by: Allan McRae <[email protected]>

- - - - -
42bf0632 by Allan McRae at 2025-10-14T15:13:26+10:00
pacman: parse directory paths passed on commandline

Passing a path to pacman such as '--cachedir .' currently fails, whereas
providing the full path works.  Have pacman get the realpath of any paths
passed to it on the command line and do some error checking to ensure
valid paths.

Fixes #238.

Signed-off-by: Allan McRae <[email protected]>

- - - - -
748e62fa by Allan McRae at 2025-10-14T15:13:26+10:00
Resolve directory paths when parsing pacman.conf

This provides checks that the directories specified in pacman.conf
exist.  It will also fix the "bug" where people replace their pacman
package cache with a symlink to another directory, and have issues
mid-transaction when pacman is upgraded (and the symlink becomes a
directory again).

Signed-off-by: Allan McRae <[email protected]>

- - - - -


5 changed files:

- src/pacman/conf.c
- src/pacman/pacman.c
- src/pacman/util.c
- src/pacman/util.h
- test/pacman/pmtest.py


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/compare/5f9d0d2784d8129577fb54c7535054b0ec3fe18e...748e62fa58e247f22d0262517e367ce07cdc5672

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/compare/5f9d0d2784d8129577fb54c7535054b0ec3fe18e...748e62fa58e247f22d0262517e367ce07cdc5672
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to