You are not logged in.
Pages: 1
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
Seems interesting. I'll try it out later tonight.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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
I did just that: http://github.com/Dieterbe/arch-configs … da3948de58
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
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
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
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
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
Pages: 1