You are not logged in.
Hi
An idea for pacman. After the command "pacman -Syu" and no packages need updating pacman returns to shell without any notice (which is fine if you know whats going on). Is it possible for pacman to output a positive message like - "All packages are up to date." or something better?
Thanks
Offline
Fair point - post a feature request in the bug tracker
Offline
Yeah, I like the suggestion, too! 8)
oz
Offline
wouldn't something like this work:
# pacman -Syu && echo "all packages are up to date"
I would assume pacman returns successfully if there's nothing to do
Offline
"all packages are up to date" is not the propper sentence, as you could have some packages that are newer or some packages in IgnorePkg, so the propper sentence should be more like "no packages were installed"
Offline
"all packages are up to date" is not the propper sentence, as you could have some packages that are newer or some packages in IgnorePkg, so the propper sentence should be more like "no packages were installed"
well that echo will happen even if it installed packages... so it may install 3 packages and then say "no packages were installed" - I was trying to think of something that would cover both cases...
Offline
phrak - i know you are of the school that thinks anything scriptable in less than 10 (is it ten?) lines should not be added to pacman but i really think that some of this simple functionality really wouldn't make it any worse a product!
Offline
oh, yeah, I'm not saying it couldn't be done or wouldn't be a bad idea (it'd be one puts() statement really)
I'm just saying that if it's only a small number of people who want this, it might not be worth changing until there are larger things changed... so I was suggesting a fix for now
I'm just a big fan of the unix philosophy that basically says things like "why incorporate a spellchecker in your app when you can run it through aspell?"
Offline
I am generally against verbose output for correct behaviour. It muddles up scripts and log files.
Conversely, failing noisily is a good thing.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
i often fail noisely - i prefer to suceed quietly also
Offline
Offline