diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-12-14 14:54:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-12-14 14:54:04 +0000 |
commit | 08feb6419b253223ca99f9ee42b27dec034a6945 (patch) | |
tree | 6e6d50939108fa34954fa885a0b17a1dfd3da08f /t | |
parent | 6f0022ac58f56e61ec1aa4b255dcf24a1a6d2a00 (diff) | |
download | urpmi-08feb6419b253223ca99f9ee42b27dec034a6945.tar urpmi-08feb6419b253223ca99f9ee42b27dec034a6945.tar.gz urpmi-08feb6419b253223ca99f9ee42b27dec034a6945.tar.bz2 urpmi-08feb6419b253223ca99f9ee42b27dec034a6945.tar.xz urpmi-08feb6419b253223ca99f9ee42b27dec034a6945.zip |
- check "old suggests" are still handled.
ie RPMTAG_REQUIRENAME + RPMSENSE_MISSINGOK,
instead of RPMTAG_SUGGESTSNAME (as done in SuSE and in Mandriva > 2008.0)
Diffstat (limited to 't')
-rw-r--r-- | t/02create_pkgs.t | 3 | ||||
-rw-r--r-- | t/data/old-suggests-1-1.noarch.rpm | bin | 0 -> 1396 bytes | |||
-rw-r--r-- | t/superuser--suggests.t | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index 7d63037b..9d8058e4 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -11,6 +11,9 @@ foreach (qw(media tmp tmp/BUILD tmp/RPMS tmp/RPMS/noarch tmp/SRPMS)) { mkdir $_; } +mkdir "media/suggests"; +system_("cp data/old-suggests-1-1.noarch.rpm media/suggests"); + # locally build test rpms foreach my $dir (grep { -d $_ } glob("data/SPECS/*")) { diff --git a/t/data/old-suggests-1-1.noarch.rpm b/t/data/old-suggests-1-1.noarch.rpm Binary files differnew file mode 100644 index 00000000..628a70e9 --- /dev/null +++ b/t/data/old-suggests-1-1.noarch.rpm diff --git a/t/superuser--suggests.t b/t/superuser--suggests.t index e6caeaa3..5a5c7027 100644 --- a/t/superuser--suggests.t +++ b/t/superuser--suggests.t @@ -30,6 +30,7 @@ test_invalid(); test_upgrade(); test_d(); test_force_suggests(); +test_old_suggests(); sub test_b { test('b', ['bb'], ['suggested_b']); @@ -47,6 +48,10 @@ sub test_invalid { check_installed_and_remove('with-invalid'); } +sub test_old_suggests { + test('old-suggests', [], ['suggested_b']); +} + sub test { my ($name, $required, $suggested) = @_; urpmi("--no-suggests --auto $name"); |