Summary: | kde4base-konsole is not present as an alternative for /usr/bin/xvt | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | alternatives | Assignee: | placeholder <placeholder> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | minor | ||
Priority: | P2 | CC: | at, glebfm, ldv, placeholder, zerg |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux | ||
Bug Depends on: | |||
Bug Blocks: | 15705 |
Description
Ivan Zakharyaschev
2008-05-18 22:05:12 MSD
It must be a problem of alternatives-0.3.3-alt1: # cat /etc/alternatives/packages.d/kde4-konsole /usr/bin/xvt /usr/lib/kde4bin/konsole 14 # l /usr/lib/kde4bin/konsole -rwx--s--x 1 root utempter 3124 May 9 02:08 /usr/lib/kde4bin/konsole # /usr/sbin/alternatives-helper --install kde4-konsole # alternatives-display /usr/bin/xvt xvt - status is manual link currently points to /usr/bin/aterm /usr/bin/xterm - priority 40 /usr/bin/urxvt - priority 60 /usr/bin/gnome-terminal - priority 40 /usr/bin/Eterm - priority 30 /usr/bin/konsole - priority 15 /usr/bin/aterm - priority 50 Current ``best" version is /usr/bin/urxvt. # rpm -qf /usr/sbin/alternatives-helper alternatives-0.3.3-alt1 # There are still pieces of code that expect tab delimiter. With this patch things like start work a bit (more work is needed, and grep for column match is bad idea anyway). [root@people .in]# diff -up /usr/bin/alternatives-display{-,} --- /usr/bin/alternatives-display- 2008-03-30 09:15:38 +0400 +++ /usr/bin/alternatives-display 2008-05-19 05:10:21 +0400 @@ -67,8 +67,8 @@ STATUS="auto" for name in $* do - grep -qs "^$name " $auto_dir/* || print_fatal "$name is not alternative" - current=`get_list | egrep "$name " | awk '{ print $2 }'` + grep -qs "^$name[[:space:]]" $auto_dir/* || print_fatal "$name is not alternative" + current=`get_list | egrep "$name[[:space:]]" | awk '{ print $2 }'` files=`find $auto_dir/* -type l` [ "$files" ] && awk -v manual_file=$manual_file -v name=$name \ -v namepat="^$name " -v current=$current \ [root@people .in]# There is no alternatives-display, sorry. |