aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2009-08-08 15:36:02 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2009-08-08 15:36:02 +0000
commitad404e7828907f5a1935aaa9b53a35244de824e6 (patch)
tree5e295b665c43fc7a606d2f2b639658223ee9f88b
parente0a804d064d5163d22ff1da6d892635135bd33ea (diff)
downloadperl-URPM-ad404e7828907f5a1935aaa9b53a35244de824e6.tar
perl-URPM-ad404e7828907f5a1935aaa9b53a35244de824e6.tar.gz
perl-URPM-ad404e7828907f5a1935aaa9b53a35244de824e6.tar.bz2
perl-URPM-ad404e7828907f5a1935aaa9b53a35244de824e6.tar.xz
perl-URPM-ad404e7828907f5a1935aaa9b53a35244de824e6.zip
add the '[' & ']' separators now used for versions in synthesistopic/proyvind
-rw-r--r--t/synthesis.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/synthesis.t b/t/synthesis.t
index 7001ad2..9136276 100644
--- a/t/synthesis.t
+++ b/t/synthesis.t
@@ -10,9 +10,9 @@ my $file1 = 'synthesis.sample.cz';
open my $f, "| gzip -9 >$file1";
print $f <<'EOF';
-@provides@glibc-devel == 6:2.2.4-25mdk
-@requires@/sbin/install-info@glibc == 2.2.4@kernel-headers@kernel-headers >= 2.2.1@/bin/sh@/bin/sh@/bin/sh@rpmlib(PayloadFilesHavePrefix) <= 4.0-1@rpmlib(CompressedFileNames) <= 3.0.4-1
-@conflicts@texinfo < 3.11@gcc < 2.96-0.50mdk
+@provides@glibc-devel[== 6:2.2.4-25mdk]
+@requires@/sbin/install-info[*]@glibc[== 2.2.4]@kernel-headers@kernel-headers[>= 2.2.1]@/bin/sh@/bin/sh@/bin/sh@rpmlib(PayloadFilesHavePrefix)[<= 4.0-1]@rpmlib(CompressedFileNames)[<= 3.0.4-1]
+@conflicts@texinfo[< 3.11]@gcc[< 2.96-0.50mdk]
@obsoletes@libc-debug@libc-headers@libc-devel@linuxthreads-devel@glibc-debug
@info@glibc-devel-2.2.4-25mdk.i586@6@45692097@Development/C
EOF
@@ -82,17 +82,17 @@ ok($obsoletes[4] eq 'glibc-debug');
my @conflicts = $pkg->conflicts;
ok(@conflicts == 2);
-ok($conflicts[0] eq 'texinfo < 3.11');
-ok($conflicts[1] eq 'gcc < 2.96-0.50mdk');
+ok($conflicts[0] eq 'texinfo[< 3.11]');
+ok($conflicts[1] eq 'gcc[< 2.96-0.50mdk]');
my @requires = $pkg->requires;
ok(@requires == 9);
-ok($requires[0] eq '/sbin/install-info');
-ok($requires[8] eq 'rpmlib(CompressedFileNames) <= 3.0.4-1');
+ok($requires[0] eq '/sbin/install-info[*]');
+ok($requires[8] eq 'rpmlib(CompressedFileNames)[<= 3.0.4-1]');
my @provides = $pkg->provides;
ok(@provides == 1);
-ok($provides[0] eq 'glibc-devel == 6:2.2.4-25mdk');
+ok($provides[0] eq 'glibc-devel[== 6:2.2.4-25mdk]');
my @files = $pkg->files;
ok(@files == 0);