summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-10-26 09:43:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-10-26 09:43:13 +0000
commit3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99 (patch)
treed0ec5f405b8b1e7feb8d9587e6c562e89dbb50c3 /perl-install/install
parent6967171048c6a06e904a84bafd918ac9f575a221 (diff)
downloaddrakx-backup-do-not-use-3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99.tar
drakx-backup-do-not-use-3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99.tar.gz
drakx-backup-do-not-use-3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99.tar.bz2
drakx-backup-do-not-use-3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99.tar.xz
drakx-backup-do-not-use-3094a07dd4df1f2a72fd9aa5ed50d01ffc231a99.zip
add some debug message: detect @::auto_steps containing invalid step
(esp when used in patch-oem.pl)
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/install2.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index 77536d7c0..53597f813 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -552,8 +552,11 @@ sub main {
$ENV{META_CLASS} = $o->{meta_class}; #- for Ia Ora
foreach (@::auto_steps) {
- my $s = $o->{steps}{/::(.*)/ ? $1 : $_} or next;
- $s->{auto} = $s->{hidden} = 1;
+ if (my $s = $o->{steps}{/::(.*)/ ? $1 : $_}) {
+ $s->{auto} = $s->{hidden} = 1;
+ } else {
+ log::l("ERROR: unknown step $_ in auto_steps");
+ }
}
my $o_;