[Tilesathome] Patch for pngnq Version check
Elandrion
elandrion at macnews.de
Wed Aug 6 19:51:53 BST 2008
Hey,
the version check for pngnq bugged out on me; I am using version 0.5.1
and the version check in tahconfig.pm thought this was a lower version
number than 0.5.
Below is the diff for tahconfig.pm, this code snipped should work for
all future versions of pngnq.
Elandrion
Index: tahconfig.pm
===================================================================
--- tahconfig.pm (revision 9509)
+++ tahconfig.pm (working copy)
@@ -288,14 +288,14 @@
{
$cmd=$Config->get("pngnq");
my $PngnqV=`\"$cmd\" -V 2>&1`;
- if ($PngnqV !~ /pngnq.+(\d+\.\d+)/)
+ if ($PngnqV !~ /pngnq +(\d+(\.\d+)+)/)
{
print "! Can't find pngnq (using \"".$Config-
>get("pngnq")."\")\n";
}
else
{
my $minVersion = "0.5";
- if (CompareVersions($1, $minVersion)) {
+ if (CompareVersions($1, $minVersion) < 1) {
print "! pngnq version ${1} too low, needs to be at
least ${minVersion}\n";
print "! disabling pngnq\n";
$Config->set("PngQuantizer", "");
More information about the Tilesathome
mailing list