From e2d40329dd8e528cf2af9fc753b24ab4670c942d Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 3 May 2007 16:39:28 +0000 Subject: [PATCH] Allow the same question t be asked by Solaris packages max 3 times --- software/csw-lib.pl | 2 +- software/pkgadd-lib.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/software/csw-lib.pl b/software/csw-lib.pl index da915f82f..dc9a8885a 100644 --- a/software/csw-lib.pl +++ b/software/csw-lib.pl @@ -27,7 +27,7 @@ while(1) { } if ($wf == 0) { # some question which should not have appeared before - if ($seen{$matches[1]}++) { + if ($seen{$matches[1]}++ > 3) { $failed++; last; } diff --git a/software/pkgadd-lib.pl b/software/pkgadd-lib.pl index 7e8ed37fb..3896c455c 100644 --- a/software/pkgadd-lib.pl +++ b/software/pkgadd-lib.pl @@ -201,7 +201,7 @@ else { '\n\/.*\n'); if ($wf == 0) { # some question which should not have appeared before - if ($seen{$matches[1]}++) { + if ($seen{$matches[1]}++ > 3) { $rv = "
$old_input$wait_for_input
"; last; }