Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#49390 - allow alpm-hooks to trigger on presence of pacnew files

Attached to Project: Pacman
Opened by Stefan Majewsky (majewsky) - Wednesday, 18 May 2016, 20:25 GMT
Task Type Feature Request
Category General
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I have a configuration management tool that handles .pacnew files for me, but I need to invoke it manually after -Syu because alpm-hooks can't trigger on pacnew files. It would be nice to have a trigger for this, for example:

[Trigger]
Operation = ConfigConflict
Type = File
Target = *

[Action]
Description = Resolve .pacnew files
When = PostTransaction
Exec = /usr/bin/my-config-mgmt resolve-pacnew
Depends = my-config-mgmt
This task depends upon

Comment by Allan McRae (Allan) - Wednesday, 18 May 2016, 21:23 GMT
You example appears to work...
Comment by Stefan Majewsky (majewsky) - Thursday, 19 May 2016, 09:39 GMT
What do you mean? There's no "Operation = ConfigConflict" in master yet, as far as I can see.
Comment by Allan McRae (Allan) - Thursday, 19 May 2016, 13:02 GMT
Bah - didn't look at that. But

Operation = Install
Operation = Upgrade
Type = File
Target = *

assuming "my-config-mgmt" can handle not finding any .pacnew files.

Loading...