mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
commited neotuli's patch for source links
This commit is contained in:
parent
3606143e6f
commit
91c3f94ff9
2 changed files with 22 additions and 8 deletions
|
@ -159,6 +159,7 @@ def main(argv=None):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
cs = ClientSocket(files, confdict['host'], confdict['port'], confdict['user'], confdict['password'])
|
cs = ClientSocket(files, confdict['host'], confdict['port'], confdict['user'], confdict['password'])
|
||||||
|
try:
|
||||||
cs.connect()
|
cs.connect()
|
||||||
|
|
||||||
if not cs.auth():
|
if not cs.auth():
|
||||||
|
@ -170,6 +171,9 @@ def main(argv=None):
|
||||||
cs.sendFiles()
|
cs.sendFiles()
|
||||||
|
|
||||||
cs.close()
|
cs.close()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print "Cancelling"
|
||||||
|
cs.close()
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
|
@ -293,8 +293,18 @@ function package_details($id=0) {
|
||||||
print "<tr><td class='boxSoft'>";
|
print "<tr><td class='boxSoft'>";
|
||||||
$sources = package_sources($row["ID"]); # $sources[0] = 'src';
|
$sources = package_sources($row["ID"]); # $sources[0] = 'src';
|
||||||
while (list($k, $src) = each($sources)) {
|
while (list($k, $src) = each($sources)) {
|
||||||
|
$parsed_url = parse_url($src);
|
||||||
|
if ($parsed_url['scheme'])
|
||||||
|
{
|
||||||
|
//It is an external source
|
||||||
print "<a href='".$src."'>".$src."</a><br />\n";
|
print "<a href='".$src."'>".$src."</a><br />\n";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//It is presumably an internal source
|
||||||
|
print "<a href='".dirname($row['URLPath'])."/".$row['Name']."/".$src."'>".$src."</a><br />\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
print "</table></td>";
|
print "</table></td>";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue