tazwok rev 351

Fix current package link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 12:23:02 2011 +0100 (2011-02-23)
parents 79d63d8143ce
children db18d2db42c2
files tazwok web/index.php
line diff
     1.1 --- a/tazwok	Tue Feb 22 22:30:38 2011 +0100
     1.2 +++ b/tazwok	Wed Feb 23 12:23:02 2011 +0100
     1.3 @@ -2104,6 +2104,7 @@
     1.4  	report_return_code=$cook_code
     1.5  	report close-bloc
     1.6  	report end-sublog
     1.7 +	rm -f $LOCAL_REPOSITORY/log/package
     1.8  	return $cook_code
     1.9  }
    1.10  
     2.1 --- a/web/index.php	Tue Feb 22 22:30:38 2011 +0100
     2.2 +++ b/web/index.php	Wed Feb 23 12:23:02 2011 +0100
     2.3 @@ -135,9 +135,10 @@
     2.4  		$status .= ", ".file_get_contents("$log_dir/step");
     2.5  		if (file_exists("$log_dir/package")) {
     2.6  			$pkg = file_get_contents("$log_dir/package");
     2.7 +			$pkg = chop($pkg);
     2.8  			if (file_exists("$log_dir/$pkg.html"))
     2.9  				$status .= " <a href=\"log.php?version=$version&package=$pkg\">$pkg</a>";
    2.10 -			else	$status .= "$pkg";
    2.11 +			else	$status .= " $pkg";
    2.12  		}
    2.13  	}
    2.14  	echo "<li>Status: $status</li>\n";