You are not logged in.

#1 2010-08-17 13:52:13

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

arch-configs

Hey guys,
yet another tool to handle .pacnew and .pacsave files.
http://github.com/Dieterbe/arch-configs

== The goal of this program compared to all others ==
* KISS (don't do more than needed); configurability only where it makes sense
* Efficiency and best practices (use specialized tools like vimdiff, pacnew_scripts, and automate actions where possible)
* Code quality & error handling (this is obvious, but worth mentioning if you've seen some of the other scripts around)

I have been using it to clean up my own system; it seems to work for me.

Check the file to see dependencies.
Note that there is a bug in the libui-sh package (which is a dep).  I still need to update that package, but for now you just need to change the libui-sh-init function to become libui_sh_init, in /usr/lib/libui.sh

Last edited by Dieter@be (2010-08-17 16:04:51)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#2 2010-08-17 14:41:24

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: arch-configs

Seems interesting. I'll try it out later tonight.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-08-17 20:28:13

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: arch-configs

I think it might be more useful to display the output of "merge_pacnew_* -c" instead of vimdiff when prompting the user to confirm changes made by pacnew_scripts. The comparison is designed to present a summary of the changes that would be made, e.g. the group-merging script uses 3 columns and colored output to show all changes in a clear way.

If some users would really prefer the vimdiff option over the output of the comparison then maybe you could add an option to configure the prompt.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2010-08-17 21:02:47

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: arch-configs

Xyne wrote:

I think it might be more useful to display the output of "merge_pacnew_* -c" instead of vimdiff when prompting the user to confirm changes made by pacnew_scripts. The comparison is designed to present a summary of the changes that would be made, e.g. the group-merging script uses 3 columns and colored output to show all changes in a clear way.

If some users would really prefer the vimdiff option over the output of the comparison then maybe you could add an option to configure the prompt.

well the vimdiff is always optional.  what i will probably do is, when a pacnew helper is found:
1) $helper -c
2) $helper > $file.merged
3) allow user to vimdiff, rm merged file, move merged file over old file.

only step 1 is new.  if the user likes the output and fully trusts the pacnew script, he only needs to type 'mv<enter>'


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#5 2010-08-18 10:36:17

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: arch-configs


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2011-02-22 12:56:07

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: arch-configs

so, no one using arch-configs?
I've been dogfooding it since I first wrote it and it still proves to be very functional, yet simple.  So I wonder if there's a reason it barely got any interest.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#7 2011-02-22 13:09:21

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: arch-configs

i will give it a shot now


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#8 2011-02-24 03:59:15

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: arch-configs

I just tried this but it tells me:

ERROR: Set your $EDITOR/$PATH correctly.  Do you want a punch in the face?

Is there something wrong with my $EDITOR/$PATH?

~ $ echo $EDITOR
nano
~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kevin/bin
~ $ 

Last edited by anonymous_user (2011-02-24 03:59:23)

Offline

#9 2011-02-24 12:59:23

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: arch-configs

anonymous_user wrote:

I just tried this but it tells me:

ERROR: Set your $EDITOR/$PATH correctly.  Do you want a punch in the face?

Is there something wrong with my $EDITOR/$PATH?

~ $ echo $EDITOR
nano
~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kevin/bin
~ $ 

well, you run arch-configs as root, right? So your environment variables are probably different (probably $EDITOR is not set for root)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#10 2011-02-24 15:30:35

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: arch-configs

Ok thanks.

BTW for the menu when it asks you what you want to do, it would be nice if you had number to select the options. The CANCEL option in particular is tedious to type.

Offline

Board footer

Powered by FluxBB