Ghostscript: link to download moved

This commit is contained in:
Steffen Lange 2021-10-23 22:21:51 +02:00
parent 7e20b3a0cd
commit 444ab7f26a

View file

@ -2,11 +2,11 @@
class Ghostscript extends PatchBase {
function __construct() {
parent::__construct('Artifex Software', 'Ghostscript', 'https://www.ghostscript.com/download/gsdnld.html');
parent::__construct('Artifex Software', 'Ghostscript', 'https://www.ghostscript.com/releases/gsdnld.html');
}
function check() : bool {
if ($this->fetch('https://www.ghostscript.com/download/gsdnld.html'))
return $this->parse('/<a name="SRC"><\/a>Ghostscript ([\d\.]+) Source/');
if ($this->fetch('https://ghostscript.com/releases/index.html'))
return $this->parse('/The latest release is Ghostscript ([\d\.]+)/');
return false;
}
}