Skip to content

Commit

Permalink
Merge pull request #240 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 da6968f + 855a29e commit 1c8e876
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 1c8e876

Please sign in to comment.