Skip to content

Commit

Permalink
Merge pull request #239 from leomeinel/main
Browse files Browse the repository at this point in the history
Merge main
  • Loading branch information
leomeinel authored May 8, 2023
2 parents 5f7db31 + 855a29e commit 07ba9d5
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions etc/pacman.d/hooks/scripts/51-pkglists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@
# -----
###

{
print_header() {
/usr/bin/echo ''
/usr/bin/echo '########################'
/usr/bin/date -u +"%Y-%m-%dT%H:%M:%S %Z"
/usr/bin/pacman -Qen
/usr/bin/date -u +"#%Y-%m-%dT%H:%M:%S %Z"
/usr/bin/echo '########################'
}
{
print_header
/usr/bin/pacman -Qen
} >>/var/log/pkglist-explicit.pacman.log
{
/usr/bin/echo ''
/usr/bin/echo '########################'
/usr/bin/date -u +"%Y-%m-%dT%H:%M:%S %Z"
print_header
/usr/bin/pacman -Qem
/usr/bin/echo '########################'
} >>/var/log/pkglist-foreign.pacman.log
{
/usr/bin/echo ''
/usr/bin/echo '########################'
/usr/bin/date -u +"%Y-%m-%dT%H:%M:%S %Z"
print_header
/usr/bin/pacman -Qd
/usr/bin/echo '########################'
} >>/var/log/pkglist-deps.pacman.log
/usr/bin/chmod 644 /var/log/pkglist-*.log

0 comments on commit 07ba9d5

Please sign in to comment.