Added a notification to index.cgi when core-updates are available.

This commit is contained in:
Jan Paul Tuecking
2009-09-14 17:59:50 +02:00
parent 0da06d3fb8
commit 2b38ab5c3a
4 changed files with 14 additions and 0 deletions

View File

@@ -399,6 +399,9 @@ sub dblist {
if ("$core_release" > "$Conf::core_mine") {
if ("$forweb" eq "forweb") {
print "<option value=\"core\">Core-Update -- $Conf::version -- Release: $Conf::core_mine -> $core_release</option>\n";
}
elsif ("$forweb" eq "notice") {
print "<a href='pakfire.cgi'>$Lang::tr{'core notice 1'} $Conf::core_mine $Lang::tr{'core notice 2'} $core_release $Lang::tr{'core notice 3'}</a>";
} else {
my $command = "Core-Update $Conf::version\nRelease: $Conf::core_mine -> $core_release\n";
if ("$Pakfire::enable_colors" eq "1") {