3 # Display a list of packages available for download from RHN
5 require './software-lib.pl';
6 $bgcolor = defined($gconfig{'cs_page'}) ? $gconfig{'cs_page'} : "ffffff";
7 $link = defined($gconfig{'cs_link'}) ? $gconfig{'cs_link'} : "0000ee";
8 $text = defined($gconfig{'cs_text'}) ? $gconfig{'cs_text'} : "000000";
12 <head><title>$text{'rhn_title'}</title>
16 window.opener.ifield.value = p;
21 </head><body bgcolor=#$bgcolor link=#$link vlink=#$link text=#$text>
24 $out = `up2date -l 2>&1`;
25 if ($out =~ /Error Message:/i) {
26 print "<pre>$out</pre>\n";
29 print "<table width=100%>\n";
30 foreach (split(/\n/, $out)) {
31 if ($dashes && /^(\S+)\s+(\S+)\s+(\S+)/) {
33 print "<tr> <td><b>$text{'rhn_pack'}</b></td> ",
34 "<td align=right><b>",
35 "$text{'rhn_version'}</b></td> </tr>\n";
38 print "<td><a href='' onClick='sel(\"$1\")'>$1</a></td>\n";
39 print "<td align=right>$2 - $3</td>\n";
49 print "<b>$text{'rhn_nonefound'}</b><p>\n";
52 print "</body></html>\n";