FS#63933 - {pacman-contrib} paccache hangs on move command
Attached to Project:
Arch Linux
Opened by Alexander Meshcheryakov (Self-Perfection) - Friday, 27 September 2019, 17:23 GMT
Last edited by Johannes Löthberg (demize) - Saturday, 28 September 2019, 12:52 GMT
Opened by Alexander Meshcheryakov (Self-Perfection) - Friday, 27 September 2019, 17:23 GMT
Last edited by Johannes Löthberg (demize) - Saturday, 28 September 2019, 12:52 GMT
|
Details
Description:
`paccache --move $ANYDIR` hangs instead of doing anything. To reproduce try: paccache --uninstalled --keep 0 --move /var/cache/pacman/pkg_temp_uninst/ Additional info: * pacman-contrib 1.1.0-1 Fixing: Turns out the reason is incorrect parsing of CLI arguments and can be fixed by adding missing ":" symbol, see attached patch |
This task depends upon
Closed by Johannes Löthberg (demize)
Saturday, 28 September 2019, 12:52 GMT
Reason for closing: Fixed
Additional comments about closing: Patch applied.
Saturday, 28 September 2019, 12:52 GMT
Reason for closing: Fixed
Additional comments about closing: Patch applied.
paccache: option '--move' does not allow an argument
:/
The root cause of error "option '--move' does not allow an argument" in your example and hang when splitting --move and $DESTINATION in separate argument is the same: incorrect parsing. Missing colon (see patch) should denote that --move argument needs additional parameter.
The precise nature of the error message is an obvious indicator that your diagnosis was correct (and so is your patch). The hang is because the option parser shifted too many arguments and therefore never quits upon discovering --.