summaryrefslogtreecommitdiffstats
path: root/t/superuser--orphans.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 11:32:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 11:32:42 +0000
commit352d67bb3389c4ae91e4b0e915dc0653eb4c7098 (patch)
treede1308075df18caea82dcc2c2c7692101f9684fc /t/superuser--orphans.t
parent633b743b69c6fc7bbe2a8ec596df3fc2fc4d95e0 (diff)
downloadurpmi-352d67bb3389c4ae91e4b0e915dc0653eb4c7098.tar
urpmi-352d67bb3389c4ae91e4b0e915dc0653eb4c7098.tar.gz
urpmi-352d67bb3389c4ae91e4b0e915dc0653eb4c7098.tar.bz2
urpmi-352d67bb3389c4ae91e4b0e915dc0653eb4c7098.tar.xz
urpmi-352d67bb3389c4ae91e4b0e915dc0653eb4c7098.zip
check that just required packages are not detected as orphans
(reported on cooker@ that perl-Mail-DomainKeys suggested by spamassassin was detected as orphan)
Diffstat (limited to 't/superuser--orphans.t')
-rw-r--r--t/superuser--orphans.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/superuser--orphans.t b/t/superuser--orphans.t
index 2713ab0c..29e87f97 100644
--- a/t/superuser--orphans.t
+++ b/t/superuser--orphans.t
@@ -88,6 +88,9 @@ sub test_urpme2 {
my ($pkg, $wanted) = @_;
print "# test_urpme($pkg, $wanted)\n";
urpmi("--media $name-1 --auto $pkg");
+ check_installed_names($pkg, split(' ', $wanted));
+ urpme("--auto --auto-orphans"); # this must not do anything
+ check_installed_names($pkg, split(' ', $wanted));
run_and_get_suggested_orphans("urpme $pkg", add_version1($wanted));
urpme("--auto --auto-orphans");
check_nothing_installed();