diff options
author | Sven Eden <yamakuzure@gmx.net> | 2013-09-10 08:07:00 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2013-09-10 08:07:00 +0200 |
commit | 25855d71b93e2de599cc9b3f5217af84f70c2b2b (patch) | |
tree | 5bfa710960f3b6c110b8b36b70088e02df43c0f8 | |
parent | Portage.pm: Added an alternative description with stripped "<include|enable|a... (diff) | |
download | ufed-25855d71b93e2de599cc9b3f5217af84f70c2b2b.tar.gz ufed-25855d71b93e2de599cc9b3f5217af84f70c2b2b.tar.bz2 ufed-25855d71b93e2de599cc9b3f5217af84f70c2b2b.zip |
udfed.pl: Send alternative text to interface
-rw-r--r-- | ufed.pl.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -84,8 +84,9 @@ sub flags_dialog { # Print global description first (if available) if (defined($conf->{global}) && length($conf->{global}{descr})) { - $outTxt .= sprintf("\t%s\t ( ) [+%s%s%s ]\n", + $outTxt .= sprintf("\t%s\t%s\t ( ) [+%s%s%s ]\n", $conf->{global}{descr}, + $conf->{global}{descr_alt}, $conf->{global}{installed} ? '+' : ' ', $conf->{global}{forced} ? '+' : ' ', $conf->{global}{masked} ? '+' : ' '); @@ -93,8 +94,9 @@ sub flags_dialog { # Finally print the local description lines for my $pkg (sort keys %{$conf->{"local"}}) { - $outTxt .= sprintf("\t%s\t (%s) [ %s%s%s%s%s%s]\n", + $outTxt .= sprintf("\t%s\t%s\t (%s) [ %s%s%s%s%s%s]\n", $conf->{"local"}{$pkg}{descr}, + $conf->{"local"}{$pkg}{descr_alt}, $pkg, $conf->{"local"}{$pkg}{installed} > 0 ? '+' : $conf->{"local"}{$pkg}{installed} < 0 ? '-' : ' ', |