FS#32951 - [pacman] auto-create dirs inside root path / more descriptive error messages
Attached to Project:
Arch Linux
Opened by Evaggelos Balaskas (ebal) - Monday, 03 December 2012, 19:46 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 08 December 2012, 19:00 GMT
Opened by Evaggelos Balaskas (ebal) - Monday, 03 December 2012, 19:46 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 08 December 2012, 19:00 GMT
|
Details
Description:
It would be great if all necessaries dirs could be auto-created under root path given pacman option -r, --root <path> i believe that are three (3) dirs: var/log var/lib/pacman & var/cache/pacman/pkg Additional info: * package version(s) all * config and/or log files etc. error msg error: failed to initialize alpm library (could not find or read directory) Steps to reproduce: # pacman -Sy base -r /mnt -v -y |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 08 December 2012, 19:00 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#32996
Saturday, 08 December 2012, 19:00 GMT
Reason for closing: Duplicate
Additional comments about closing:
Comment by
Dave Reisner (falconindy) - Monday,
03 December 2012, 20:00 GMT
Cache directories are already created for you. The DBPath will
never be created automatically because it's sacred. We shouldn't
randomly populate a new database because a user mistyped a path. I
suspect that we don't care if the log directory exists and forge
ahead, but we should probably make this an error as well. And
really, our error messages should be more descriptive than they
are.