You are not logged in.

#1 2014-03-26 15:15:17

jameh0
Member
Registered: 2013-04-06
Posts: 40

Commit Messages for Pacman

Keeping track of packages can be hard, so I imagine a flag for pacman that would allow the user to type a message to be timestamped and logged.

Then the /var/log/pacman.log could look something like:

[2014-03-26 00:32] [PACMAN] Running 'pacman -S kdeconnect'
[2014-03-26 00:32] [JAMEH] Install app for hooking up android device
[2014-03-26 00:32] [PACMAN] installed kdeconnect (0.5.1-1)

Life is very short, and there's no time for fussing and fighting, my friends.

Offline

#2 2014-03-26 15:23:35

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: Commit Messages for Pacman

What do you want to keep track of? Recently installed appliactions? Wouldn't "cat /var/log/pacman.log | grep installed" do the trick? Should filter everything pretty nicely.

Offline

#3 2014-03-26 15:26:11

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Commit Messages for Pacman


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2014-03-26 15:45:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: Commit Messages for Pacman

Why not just a script or shell function:

echo "$(date "+[%Y-%M-%d %H:%M]") [$(whoami)] $@" >> /var/log/pacman.log

Use as `<scriptname> your message here`.

Last edited by Trilby (2014-03-26 15:45:56)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB