+ ;; We only need to build the 'dir' file for inputs that does
+ ;; manuals.
On 15.12.2017 16:12, 宋文武 wrote:> Hello!
Currently we run profile hooks for all manifest inputs, so if you
install a new package to your profile, all profile hooks will be run
again, even if the new package doesn't provide info manuals, man pages,
etc. Ideally only interested hooks need to be run, eg: if the new
package has info manuals, then the 'info-dir-file' hook will run.
One would need to filter man-pages too, right?
+ (define interested
+ (lambda (input)
+ (or (file-exists? (string-append input "/share/info"))
+ (file-exists? (string-append input "/share/man"))))
+ '#$(manifest-inputs manifest))))
I get it works somehow, but breaks the '--dry-run' functionality which I
have no idea how to preserve...
Needing help and directions, thanks!
I can barely write scheme. I can't help much, sorry.
GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC