diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2010-01-12 14:09:13 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2010-01-12 14:09:13 +0000 |
commit | be0025cbebfd91d754be71297cb4c3a5e18fffb7 (patch) | |
tree | 1b251049c07705158907d9eb8922c6a036a6fa5d | |
parent | 46d17b0b3d673e176ec8d5d72c1a678d131195f9 (diff) | |
download | urpmi-be0025cbebfd91d754be71297cb4c3a5e18fffb7.tar urpmi-be0025cbebfd91d754be71297cb4c3a5e18fffb7.tar.gz urpmi-be0025cbebfd91d754be71297cb4c3a5e18fffb7.tar.bz2 urpmi-be0025cbebfd91d754be71297cb4c3a5e18fffb7.tar.xz urpmi-be0025cbebfd91d754be71297cb4c3a5e18fffb7.zip |
adjust parsing of orphan message in auto-orphan test
-rw-r--r-- | t/superuser--orphans.t | 2 |
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); |