You are not logged in.

#1 2007-01-02 19:12:41

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

idea: News in Pacman

Thought I'd toss this out because I can't decide if its in violation of KISS or not, and maybe now would be a good time to bend the ears of the pacman 3 devs... We love you phrakture! ;-)

Every once in a while, something happens in Arch packages that users need to know about when they -Syu. This is sometimes posted as part of the postinstall script for the package in question, or its posted to the front page news at archlinux.org. Some people don't read archlinux.org, and sometimes the postinstall notes are scrolled off the screen when an update occurs.

I was just thinking it may be smart to have a 'news' feature built into pacman so that certain tidbits of information can be displayed immediately after an upgrade has occurred (things like: you need to change lilo.conf or menu.lst before you reboot). The news could be designed such that users don't see it twice, as happens with the postinstall method is used, and package-related information could be condensed so that its not missed if one doesn't read the arch news at the right time.

This would be quite KISSish from the user point of view, but maybe it makes things complicated from the developer point of view. Its not automating anything, just consolidating disparate streams of information.

Thoughts?

Dusty

Offline

#2 2007-01-02 19:18:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: idea: News in Pacman

+1


Mr Green

Offline

#3 2007-01-02 19:48:53

Kermit
Member
From: Chorzów, Poland
Registered: 2006-03-25
Posts: 78

Re: idea: News in Pacman

+1

Kermit.

Offline

#4 2007-01-02 19:58:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: idea: News in Pacman

Hmmm, 2 points.  The second one "fixes" the first, so read fully.

1) I think integrating a news downloader would, in fact, violate KISS in some way, as it would get very specific.

2) When I finally get around to adding a global "on install" system, which I plan on doing, this will be cake.  The idea came from the fact that I want some sort of trigger when "/usr/include" is touched by pacman, to re-run ctags for my global tag file.  So, in theory, we have a file pattern and a command to run.  It would be very easy to have "match *" run something like "check-front-page-news.py"

Opinions?

Offline

#5 2007-01-02 19:58:51

bones
Member
From: Brisbane
Registered: 2006-03-24
Posts: 322
Website

Re: idea: News in Pacman

I like that idea :idea:


"When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return."

Offline

#6 2007-01-02 20:01:02

RedShift
Member
From: Belgium
Registered: 2004-07-16
Posts: 230

Re: idea: News in Pacman

-1
People should just read the front page news.


:?

Offline

#7 2007-01-02 20:51:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: idea: News in Pacman

phrakture wrote:

2) When I finally get around to adding a global "on install" system, which I plan on doing, this will be cake.  The idea came from the fact that I want some sort of trigger when "/usr/include" is touched by pacman, to re-run ctags for my global tag file.  So, in theory, we have a file pattern and a command to run.  It would be very easy to have "match *" run something like "check-front-page-news.py"

This is an even more generic solution, which is always a good thing when it comes to KISS. I actually suggested something like this a long while back when there was a huge debate about whether or not lilo should be automatically run when kernel26 (for example) was installed.

Dusty

Offline

#8 2007-01-02 20:52:49

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: idea: News in Pacman

No.
Pacman output is already fine. I DO get essential warnings like "If you run lilo, execute 'lilo' before reboot" or "blurp extracted as blurp.pacnew".
Everything else than that would just bloat pacman - it is for package management, not a newsreader. I even like it without colours  big_smile .

Offline

#9 2007-01-02 21:40:17

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: idea: News in Pacman

phrakture wrote:

Opinions?

News and general notifications are quite outside the purview of package management. I say no.


"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

#10 2007-01-02 22:10:05

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: idea: News in Pacman

I could use debian if I liked it that way. I say nope for pacman as news transporter. Pacman should handle packages, the user should know what he does.

At least, if a package update could result in unbootable systems, it would be nice to have a hint and a stop, the way like "Take care and read http:xxxxx before updating this code. Like to proceed? y/N".


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#11 2007-01-02 22:28:02

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: idea: News in Pacman

cactus wrote:
phrakture wrote:

Opinions?

News and general notifications are quite outside the purview of package management. I say no.

Right, but the system proposed has nothing to do with news really.  It's just that it enables the "pull down" of news, were the system in place.

Offline

#12 2007-01-02 22:38:36

kensai
Member
From: Puerto Rico
Registered: 2005-06-03
Posts: 2,484
Website

Re: idea: News in Pacman

I'm so so about the idea, well is helpful but not KISS. Anyways, maybe we are not getting pacman 3 before duke nukem forever comes out. So don't hold your breath. lol


Follow me in: Identi.ca, Twitter, Google+

Offline

#13 2007-01-02 23:02:30

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: idea: News in Pacman

phrakture wrote:

2) When I finally get around to adding a global "on install" system, which I plan on doing, this will be cake.  The idea came from the fact that I want some sort of trigger when "/usr/include" is touched by pacman, to re-run ctags for my global tag file.  So, in theory, we have a file pattern and a command to run.  It would be very easy to have "match *" run something like "check-front-page-news.py"

A generic trigger based system would be good. I'd find it quite useful, if not for the news, but for just keeping track of some things. Would it be all that difficult to implement? If not, then it seems pretty KISS and lets users leverage it to get news if they wish.

The other option is logging post install in it's entirety or setup post.install scripts to log (echo >>) their notes and important things to /var/log/pacman.postinstall which users could review in their own time.

James

Offline

#14 2007-01-02 23:52:56

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: idea: News in Pacman

I think it would be tremendously helpful if postinstall messages were displayed all at once before pacman exits so they are not missed or confused between the regular pacman install messages.
something like:

[...]
installing mkinitcpio... done.

kernel26:
kernel26 post install message

mkinitcpio:
mkinitcpio post install message

Offline

#15 2007-01-03 00:03:05

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: idea: News in Pacman

/me votes for phrakture's point #2.
It is KISS - it doesn't integrate "newsreader" into Pacman, but allows users to do this by themselves.
However, there should be option to trigger something (i.e. "newsreader") before actual update - just between database sync and package download stages.


to live is to die

Offline

#16 2007-01-03 04:07:40

bneate
Member
Registered: 2005-08-21
Posts: 36

Re: idea: News in Pacman

T-Dawg wrote:

I think it would be tremendously helpful if postinstall messages were displayed all at once before pacman exits so they are not missed or confused between the regular pacman install messages.
something like:

[...]
installing mkinitcpio... done.

kernel26:
kernel26 post install message

mkinitcpio:
mkinitcpio post install message

I agree with this it would be extremely helpful if all the post install messages were displayed at the same time after all of the packages have been updated.  It's to easy to miss a post install message if you have a bunch of packages being installed/upgraded and the first one has a important message that just gets scrolled away.

Offline

#17 2007-01-03 05:25:20

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: idea: News in Pacman

This is a good idea - can someone add this to the bug tracker as a feature request so I can get to it later on?

Offline

#18 2007-01-03 06:27:15

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: idea: News in Pacman

I like the idea, but I really don't see it in the scope of pacman.  Why can't someone just run

news-checker.py && pacman -Syu

A hooks system seems to be a bit out there.  Then again I can't see all the uses for this right now.

Offline

#19 2007-01-03 06:37:22

Acid7711
Member
From: Chicago, IL
Registered: 2006-08-18
Posts: 300
Website

Re: idea: News in Pacman

T-Dawg wrote:

I think it would be tremendously helpful if postinstall messages were displayed all at once before pacman exits so they are not missed or confused between the regular pacman install messages.
something like:

[...]
installing mkinitcpio... done.

kernel26:
kernel26 post install message

mkinitcpio:
mkinitcpio post install message

This is how I envisioned the proposed addon. I for one would like to see this implamented. I hate missing what is going by, granted half of the time it doesn't pertain to me, but the main point is it's there for a reason, and if it scrolls by too fast to read, then it's useless to begin with.  You'll never know when someones installing a single package or an entire group that will run postinstall text off the page.

Offline

#20 2007-01-03 07:50:59

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: idea: News in Pacman

codemac wrote:

Then again I can't see all the uses for this right now.

Removal of all the .install files for gnome (scrollkeeper), a single depmod call for any and all /lib/modules changed, regeneration of the locatedb, notifications if any .pacnew files were spit out, etc etc - I can think of close to 100 uses for a "when file matching pattern X is changed, perform operation Y"

Offline

#21 2007-01-03 07:54:05

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: idea: News in Pacman

Why not just give use the option ?

pacman -N would display current news relating to updates

Yes T-Dawg adding update info to end of pacman output is a cool idea


Mr Green

Offline

#22 2007-01-03 08:59:56

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: idea: News in Pacman

T-Dawg wrote:

I think it would be tremendously helpful if postinstall messages were displayed all at once before pacman exits so they are not missed or confused between the regular pacman install messages.
something like:

[...]
installing mkinitcpio... done.

kernel26:
kernel26 post install message

mkinitcpio:
mkinitcpio post install message

this is a good idea!


and I agree with Moo-Crumpus

Moo-Crumpus wrote:

... I say nope for pacman as news transporter. Pacman should handle packages, the user should know what he does.

At least, if a package update could result in unbootable systems, it would be nice to have a hint and a stop, the way like "Take care and read http:xxxxx before updating this code. Like to proceed? y/N".

Offline

#23 2007-01-03 10:17:15

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: idea: News in Pacman

phrakture wrote:

This is a good idea - can someone add this to the bug tracker as a feature request so I can get to it later on?

Done.


to live is to die

Offline

#24 2007-01-10 21:14:11

CatalinuX
Member
Registered: 2007-01-10
Posts: 8

Re: idea: News in Pacman

Hmm I myself would like to see this implemented this way: After the installation/upgrading of the components, to display a text like: "Make sure you read this.log before rebooting", where this.log is generated by pacman and contains all the important messages and actions that must be done after installing/upgrading a package.

Offline

Board footer

Powered by FluxBB