FS#33369 - pacman asks for root passwork for -w option (download only)

Attached to Project: Pacman
Opened by scorici (scorici) - Saturday, 12 January 2013, 02:43 GMT
Last edited by Allan McRae (Allan) - Monday, 08 January 2018, 04:16 GMT
Task Type Feature Request
Category Backend/Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
pacman asks for root password for -w option even if not downloading in cache (/var/cache/pacman/pkg) where root permission is required. I tried with the --cache option set to $HOME which is writable.

Additional info:
package version :4.0.3-5
forum thread: https://bbs.archlinux.org/viewtopic.php?pid=1216634
Steps to reproduce:
$ pacman -Sw gnuchess --cachedir $HOME
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 08 January 2018, 04:16 GMT
Reason for closing:  Won't implement
Comment by Dave Reisner (falconindy) - Saturday, 12 January 2013, 16:35 GMT
Seems fairly straight forward at first glance, but there's a lot of pitfalls. Doing this would mean that we add yet another exception to our list in needs_root(), and then somehow add ALPM_TRANS_FLAG_NOLOCK to the sync transaction (this alone is questionable, but I guess we protect against corrupt downloads). Our cachedir finding logic already does the job of finding us a writeable cachedir, but I think that it'll always fall back on /tmp if it can't find anything writeable.

Loading...