Package Details: pacman-hook-list-systemd-units 1.4-1

Git Clone URL: https://aur.archlinux.org/pacman-hook-list-systemd-units.git (read-only, click to copy)
Package Base: pacman-hook-list-systemd-units
Description: Prints new systemd units on package installation or upgrade.
Upstream URL: None
Licenses: Unlicense
Submitter: sdore
Maintainer: sdore
Last Packager: sdore
Votes: 4
Popularity: 0.49
First Submitted: 2022-03-05 06:38 (UTC)
Last Updated: 2024-12-04 20:15 (UTC)

Required by (0)

Sources (1)

Latest Comments

sdore commented on 2024-12-04 20:14 (UTC)

Oh no, I thought I've tested it! My bad. Fixing in a minute.

emilylime commented on 2024-12-04 17:28 (UTC)

Wait no you just broke the package >-< "%s" pkg concatenates the strings and fails with

awk: cmd. line:6: (FILENAME=- FNR=2) fatal: not enough arguments to satisfy format string `%sunits' ^ ran out for this one

emilylime commented on 2024-12-04 16:51 (UTC)

Ah nevermind I was too late. Nice job for the quick response :)

emilylime commented on 2024-12-04 16:51 (UTC)

In that case just printf "%s", pkg; should work, in case you need an idea.

sdore commented on 2024-12-04 16:35 (UTC)

@emilylime You're perfectly right, thank you! I've missed that one.

print wasn't suitable there as we need to print without a newline, but I'll fix this another way.

emilylime commented on 2024-12-04 16:14 (UTC)

list-systemd-units.sh, line 12: printf pkg;—using a variable for the format argument of printf is bad practice even if package names shouldn't normally contain percent signs. Use print instead