You are not logged in.

#1 2004-06-28 20:34:09

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Few ideas

Why not have a little feature wether it be for pacman or as another program that merges the changes between config files.. You know when pacman puts filename.pacnew why not have a util where you type lets say merge-config and it looks at the differences and changes it.. Something like that if you know what i mean where we dont have to go and manually update config files with the new .pacnew ones.. Just a thought from being with lovely gentoo for a week..

Offline

#2 2004-06-28 20:56:18

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: Few ideas

Gentoo has this feature. It all seems a little too risky for me. Personally, I don't want my configuration files touched unless it's by my root guided hand.

I dont think too many config files get updated. You could always do this manually via diff and other tools. It's probably much safer (it's what I do to check what was changed).


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#3 2004-06-28 21:06:20

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

yes, i agree with contrasutra, it's too much work for quite no benefit

but maybe a py-script that opens the 2 configs in kdiff or something like this would be nice, if someone wants to play around --- i mean a tool that opens you the 2 configs and you can choose what you want to apply to what (X/kdiff opened automatically after each .pacsave-install)


The impossible missions are the only ones which succeed.

Offline

#4 2004-06-28 21:43:47

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Few ideas

Pacman is much smarter than portage though, it checks the md5sums to see if config files are edited and upgrades them if you didn't touch them. It also doesn't bother you if the new config file didn't change from the original old one and you edited the file.

If you want to do it yourself then just take a look at the diff, patch and diff3 manpages.

Offline

#5 2004-06-28 21:53:42

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: Few ideas

Ok it was just a suggestion.. obviously its not liked.. So please close the thread delete it or whatever.. Just a note to someone wit admin powers to allow a thread to be deleted by the original author.. That way we can remove our own dup posts and posts that are fixed elsewhere..

Offline

#6 2004-06-28 22:01:01

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

iotc247 wrote:

Ok it was just a suggestion.. obviously its not liked.. So please close the thread delete it or whatever.. Just a note to someone wit admin powers to allow a thread to be deleted by the original author.. That way we can remove our own dup posts and posts that are fixed elsewhere..

it's not that it is not liked. it is not needed - i would like to play with a kdiff-simmilar tool, with colors and all theses cool eye-candies, but eye candies are not that essential

i would suggest that we let this thread open for search-catches on this subject --- but i would suggest you, that you edit the subject to something more precise, that it can be found more easily ("few ideas" is too general)

keep the ideas posting --- it is always good to collect ideas that someone can realize somewhen :-)


The impossible missions are the only ones which succeed.

Offline

#7 2004-06-28 22:11:05

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

how this idea would be usefull:

kompare

jl4SwyT6.jpg


The impossible missions are the only ones which succeed.

Offline

#8 2004-06-29 17:56:34

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Few ideas

vimdiff does exactly that.  Only it's less graphical and more cool.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#9 2004-06-29 22:11:04

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

Re: Few ideas

Xentac wrote:

Only it's less graphical and more cool.

Anything that is less graphical is more cool. duh.

Dusty

Offline

#10 2004-06-29 23:09:01

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

Xentac wrote:

vimdiff does exactly that.  Only it's less graphical and more cool.

yes, but a pacman session do not open it automatically - that's what i mean that the idea is: to choose the changes while -Suying


The impossible missions are the only ones which succeed.

Offline

#11 2004-06-29 23:20:24

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Few ideas

I think you would have a lot of trouble convincing Judd to make the pacman upgrade procedure interactive.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#12 2004-06-29 23:49:31

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: Few ideas

I like the system we have.  Most of the time, I can just ignore a new config, and I like it that way.  I would prefer to only be notified when there's a real issue.


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#13 2004-06-30 00:31:16

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

do not misunderstand me:

i do not want to have an obligate interactive pacman --- noooooo, this would be horrible

but the idea of an interactive offer to change files that are updated in new pkg but are marked as "config-file" or something like this would be a nice eye candie as addon --- let's use the power of metadata :-) (like the new gnome, longhorn and others) *hitANDrun*  lol


The impossible missions are the only ones which succeed.

Offline

#14 2004-06-30 00:48:12

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: Few ideas

power of metadata

*gag*

I think I just puked a little...


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#15 2004-06-30 02:04:29

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: Few ideas

Ok what about rc-update ? Or inet.d-update or something like that where it adds services to rc.conf or however gentoo does it.. I dunno i just like that little stuff where i dont have to edit a config file.. Its not gui either.. I think that we can take alot from gentoo.. Id used it with arch but its stupid source based... Dam you gentoo..

Offline

#16 2004-06-30 03:33:33

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

Re: Few ideas

what about a wrapper that searches the system for .pacsave files and then displays the merge *after* pacman has run. What say you?

Offline

#17 2004-06-30 08:47:12

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Few ideas

Dusty wrote:

what about a wrapper that searches the system for .pacsave files and then displays the merge *after* pacman has run. What say you?

Wrapper, we don't need no steenking wrapper.

for i in `locate .pacsave .pacnew | grep \\(pacsave\\|pacnew\\)$`; do vimdiff `echo $i | rev | sed 's/^.*cap.//' | rev` $i; done

Did you want to delete the files afterward?

for i in `locate .pacsave .pacnew | grep \\(pacsave\\|pacnew\\)$`; do vimdiff `echo $i | rev | sed 's/^.*cap.//' | rev` $i; rm $i; done

I'll admit, a script would probably be more robust, but this does essentially that.  Oh yeah, your slocate db will have to be up to date for this to work.  I figured it'd be faster using locate than using find or something.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#18 2004-06-30 10:26:50

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

Xentac wrote:
Dusty wrote:

what about a wrapper that searches the system for .pacsave files and then displays the merge *after* pacman has run. What say you?

Wrapper, we don't need no steenking wrapper.

for i in `locate .pacsave .pacnew | grep \\(pacsave\\|pacnew\\)$`; do vimdiff `echo $i | rev | sed 's/^.*cap.//' | rev` $i; done

Did you want to delete the files afterward?

for i in `locate .pacsave .pacnew | grep \\(pacsave\\|pacnew\\)$`; do vimdiff `echo $i | rev | sed 's/^.*cap.//' | rev` $i; rm $i; done

I'll admit, a script would probably be more robust, but this does essentially that.  Oh yeah, your slocate db will have to be up to date for this to work.  I figured it'd be faster using locate than using find or something.


exactly something like this, but built in in the main souce of pacman
(that people do not need to type a lot or have scripts spread across the whole system)


The impossible missions are the only ones which succeed.

Offline

#19 2004-06-30 15:03:38

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

Re: Few ideas

dp wrote:

exactly something like this, but built in in the main souce of pacman
(that people do not need to type a lot or have scripts spread across the whole system)

Silly Damir, that will make the pacman binary bigger for all those of us that don't care about this functionality. wink

Scripts don't have to be spread across the system, put them in one directory. Scripts are really really really really useful. That way you can set your system up just as you like it instead of as some programmer says it should be.

Dusty

Offline

#20 2004-06-30 17:48:59

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Few ideas

dp wrote:

exactly something like this, but built in in the main souce of pacman
(that people do not need to type a lot or have scripts spread across the whole system)

You forget your Unix koans: http://www.catb.org/~esr/writings/unix- … usand.html


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#21 2004-06-30 21:44:00

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

Dusty wrote:
dp wrote:

exactly something like this, but built in in the main souce of pacman
(that people do not need to type a lot or have scripts spread across the whole system)

Silly Damir, that will make the pacman binary bigger for all those of us that don't care about this functionality. wink

Scripts don't have to be spread across the system, put them in one directory. Scripts are really really really really useful. That way you can set your system up just as you like it instead of as some programmer says it should be.

Dusty

it would grow only some lines, but gaining a feature :-)

i didnt meant searching for scripts physically (locate, ...), but by name:

[damir@Asteraceae /]$ [tab pressed]
Display all 4491 possibilities? (y or n)

ok, and now tell me who of us knows all of these 4491 possiblities? noone! and if you start adding scripts of different names, this list will grow longer and longer

it's more esthetically than really important


The impossible missions are the only ones which succeed.

Offline

#22 2004-06-30 21:44:30

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Few ideas

Xentac wrote:
dp wrote:

exactly something like this, but built in in the main souce of pacman
(that people do not need to type a lot or have scripts spread across the whole system)

You forget your Unix koans: http://www.catb.org/~esr/writings/unix- … usand.html

hey, that's a cool one lol thanx for the link


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB