remi pushed to php-JsonSchema (master). "fix tests autoloader (FTBFS detected by Koschei)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 13 09:09:08 UTC 2015


>From e52d8a547649057a8316c27898ba37c571c8fa13 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Mon, 13 Apr 2015 11:08:51 +0200
Subject: fix tests autoloader (FTBFS detected by Koschei)


diff --git a/php-JsonSchema.spec b/php-JsonSchema.spec
index 220c9f6..f4a1995 100644
--- a/php-JsonSchema.spec
+++ b/php-JsonSchema.spec
@@ -25,7 +25,7 @@
 
 Name:          php-%{lib_name}
 Version:       %{github_version}
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       PHP implementation of JSON schema
 
 Group:         Development/Libraries
@@ -101,7 +101,9 @@ cat > autoload.php <<'AUTOLOAD'
 <?php
 spl_autoload_register(function ($class) {
     $src = str_replace('\\', '/', $class).'.php';
-    require_once $src;
+    if ($path = stream_resolve_include_path($src)) {
+        require_once $path;
+    }
 });
 AUTOLOAD
 
@@ -125,6 +127,9 @@ rm -rf tests/JsonSchema/Tests/Drafts
 
 
 %changelog
+* Mon Apr 13 2015 Remi Collet <remi at fedoraproject.org> - 1.4.2-1
+- fix tests autoloader (FTBFS detected by Koschei)
+
 * Fri Mar 27 2015 Remi Collet <remi at fedoraproject.org> - 1.4.1-1
 - Update to 1.4.1
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-JsonSchema.git/commit/?h=master&id=e52d8a547649057a8316c27898ba37c571c8fa13


More information about the scm-commits mailing list