[SCM] librdf-acl-perl Debian packaging branch, master, updated. debian/0.101-1-11-g1586517

Jonas Smedegaard dr at jones.dk
Mon May 21 16:19:23 UTC 2012


The following commit has been merged in the master branch:
commit 2f9fa1f4b044ea2271e4bf90fe90380848ce69a7
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon May 21 18:00:09 2012 +0200

    Add patch 1001 to fix test to cope with authid sorting.

diff --git a/debian/patches/1001_fix_test_authid_sorting.patch b/debian/patches/1001_fix_test_authid_sorting.patch
new file mode 100644
index 0000000..0af07de
--- /dev/null
+++ b/debian/patches/1001_fix_test_authid_sorting.patch
@@ -0,0 +1,38 @@
+Description: Fix test to cope with authid sorting
+Author: Jonas Smedegaard <dr at jones.dk>
+Last-Update: 2012-05-21
+
+--- a/t/03classes.t
++++ b/t/03classes.t
+@@ -15,7 +15,9 @@
+ 	'level'       => ['append', 'read']
+ 	);
+ 
+-my $proper = <<CANON;
++my $proper;
++if ($authid lt $authid2) {
++	$proper = <<CANON;
+ <$authid> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/auth/acl#Authorization> .
+ <$authid> <http://www.w3.org/ns/auth/acl#accessToClass> <http://xmlns.com/foaf/0.1/Document> .
+ <$authid> <http://www.w3.org/ns/auth/acl#agent> <http://example.com/fembot#me> .
+@@ -27,6 +29,20 @@
+ <$authid2> <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Append> .
+ <$authid2> <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .
+ CANON
++} else {
++	$proper = <<CANON;
++<$authid2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/auth/acl#Authorization> .
++<$authid2> <http://www.w3.org/ns/auth/acl#accessToClass> <http://xmlns.com/foaf/0.1/PersonalProfileDocument> .
++<$authid2> <http://www.w3.org/ns/auth/acl#agent> <http://example.com/fembot#me> .
++<$authid2> <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Append> .
++<$authid2> <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .
++<$authid> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/auth/acl#Authorization> .
++<$authid> <http://www.w3.org/ns/auth/acl#accessToClass> <http://xmlns.com/foaf/0.1/Document> .
++<$authid> <http://www.w3.org/ns/auth/acl#agent> <http://example.com/fembot#me> .
++<$authid> <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Person> .
++<$authid> <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .
++CANON
++};
+ $proper =~ s/\r?\n/\r\n/g;
+ 
+ is($proper, $acl->save('canonical ntriples'), "allow seems to generate sensible triples");
diff --git a/debian/patches/series b/debian/patches/series
index 5b83746..40f6b0d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+1001_fix_test_authid_sorting.patch
 2001_disable_verification.patch

-- 
librdf-acl-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list