All pastes #464117 Raw Edit

Stuff

public text v1 · immutable
#464117 ·published 2007-04-29 10:13 UTC
rendered paste body
<html>
<head>
<title>Ubuntu DaD: merges Ubuntu packages from Debian</title>
<style>
table {
border-color:black;
border-style:solid;
border-width:1px;
font-size:11px
}
td {
border-color:silver;
border-style:dotted;
border-width:1px;
}
</style>
</head>
<body>
<h1>Ubuntu DaD: merges Ubuntu packages from Debian</h1>
<table>
<tr>
<th width="150"><b>Package name</b></th>
<th width="200"><b>Current Ubuntu version<b></th>
<th width="200"><b>Current Debian version<b></th>
<th width="250"><b>Last Ubuntu uploader<b></th>
</tr>
<?php
$tomerge = fopen('merges/tomerge', 'r');
while(!feof($tomerge)) {
	$lines = fgets($tomerge, 1024);
	$data = explode(',', $lines);
	$package = explode(' ', $data[0]);
	$maintainer = $data[1];
	$ubuntuversion = explode('-',$package[2]);
	if($ubuntuversion[1] != '') $ubuntuversion[1] = '-'.$ubuntuversion[1];
	$debianversion  = explode('-',$package[1]);
	if($debianversion[1] != '') $debianversion[1] = '-'.$debianversion[1];

	if($package[0] == '') break;
	echo '<tr>';
	echo '<td>(<a href="https://launchpad.net/ubuntu/+source/'.$package[0].'">LP</a>) <a href="'.$package[0].'">'.$package[0].'</a></td>';
	echo '<td><b><font color="red">'.$ubuntuversion[0].'</font></b>'.$ubuntuversion[1].'</td>';
	echo '<td><b><font color="red">'.$debianversion[0].'</font></b>'.$debianversion[1].'</td>';
	echo '<td>'.htmlspecialchars($maintainer).'</td>';
	echo '</tr>'."\n";
}
fclose($tomerge); 
?>
</body>
</html>