summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:17:13 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:17:13 +0000
commit71f3dc56c2f6f54dd9035ab7b209528296c8c88f (patch)
treec3829a7a3b6545746efcbdf9495b6a4d7db43bb1
parentdcbaf58a756e8df5322181568d43d13f25391b0e (diff)
downloadurpmi-71f3dc56c2f6f54dd9035ab7b209528296c8c88f.tar
urpmi-71f3dc56c2f6f54dd9035ab7b209528296c8c88f.tar.gz
urpmi-71f3dc56c2f6f54dd9035ab7b209528296c8c88f.tar.bz2
urpmi-71f3dc56c2f6f54dd9035ab7b209528296c8c88f.tar.xz
urpmi-71f3dc56c2f6f54dd9035ab7b209528296c8c88f.zip
adjust parsing of orphan message in auto-orphan test
-rw-r--r--t/superuser--orphans.t2
1 files changed, 1 insertions, 1 deletions
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);