From be0025cbebfd91d754be71297cb4c3a5e18fffb7 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 12 Jan 2010 14:09:13 +0000 Subject: adjust parsing of orphan message in auto-orphan test --- t/superuser--orphans.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/superuser--orphans.t b/t/superuser--orphans.t index f036e3a4..68f10ff3 100644 --- a/t/superuser--orphans.t +++ b/t/superuser--orphans.t @@ -196,7 +196,7 @@ sub run_and_get_suggested_orphans { my $s = run_urpm_cmd($cmd); print $s; - my ($lines) = $s =~ /^The following packages? (?:is|are) now orphaned, if you wish to remove (?:it|them), you can use "urpme --auto-orphans"\.\n(.*)/ms; + my ($lines) = $s =~ /^The following packages?:\n(.*)\n(?:is|are) now orphaned, if you wish to remove (?:it|them), you can use "urpme --auto-orphans"/ms; my @msgs = $lines ? $lines =~ /^ (\S+)\.\S+$/mg : (); # we don't want the arch my $msg = join(" -- ", sort @msgs); -- cgit v1.2.1