[pacman-dev] [PATCH] Option to pass packages' versions to hook. Linearize code in _alpm_hook_trigger_match_pkg.

Sergey Petrenko chaoskeeper at mail.ru
Mon Sep 5 08:01:12 UTC 2016


Sure:
https://github.com/versusvoid/archlinux-kernels-backup/blob/master/usr/bin/restore-kernel#L98

If I can get version of removed kernel, then I don't need to search for new backup through 
all the directories, or:

https://github.com/versusvoid/archlinux-kernels-backup/blob/master/usr/bin/backup-kernel#L11

manually parse package version.

>Понедельник,  5 сентября 2016, 10:45 +03:00 от Allan McRae <allan at archlinux.org>:
>
>On 05/09/16 03:44, Sergey Petrenko via pacman-dev wrote:
>> I'm writing hooks to solve infamous kernel problem. Having version in hook isn't necessary,
>> but will save me lot of work (and lot of time at each hook run).
>> 
>
>Can you post an example hook with what your are trying to achieve.
>
>Allan


-- 
With wish of constant improvement
and unstoppable creativity.
Sergey Petrenko


More information about the pacman-dev mailing list