Files
perl-Apache-Gallery/Apache-Gallery-1.0.2_cachepath.patch

21 lines
1.2 KiB
Diff

diff -u -r Apache-Gallery-1.0.2_fix/t/004_cache_dir.t Apache-Gallery-1.0.2/t/004_cache_dir.t
--- Apache-Gallery-1.0.2/t/004_cache_dir.t 2016-05-20 11:44:16.067050414 +0200
+++ Apache-Gallery-1.0.2_fix/t/004_cache_dir.t 2016-05-20 11:56:17.479816255 +0200
@@ -42,12 +42,12 @@
}
my $r=request(undef, 1);
-is(Apache::Gallery::cache_dir($r, 1), '/var/tmp/Apache-Gallery/hostname/uripath1/uripath2');
-is(Apache::Gallery::cache_dir($r, 0), '/var/tmp/Apache-Gallery/hostname/uripath1/uripath2/urifile');
+is(Apache::Gallery::cache_dir($r, 1), '/var/cache/www/hostname/uripath1/uripath2');
+is(Apache::Gallery::cache_dir($r, 0), '/var/cache/www/hostname/uripath1/uripath2/urifile');
$r=request(undef, 0);
-is(Apache::Gallery::cache_dir($r, 1), '/var/tmp/Apache-Gallery/location/uripath1/uripath2');
-is(Apache::Gallery::cache_dir($r, 0), '/var/tmp/Apache-Gallery/location/uripath1/uripath2/urifile');
+is(Apache::Gallery::cache_dir($r, 1), '/var/cache/www/location/uripath1/uripath2');
+is(Apache::Gallery::cache_dir($r, 0), '/var/cache/www/location/uripath1/uripath2/urifile');
$r=request('t/cachetest', 1);
is(Apache::Gallery::cache_dir($r, 1), 't/cachetest/uripath1/uripath2');