Hello mentors

I have the following question: I want to validate user input while configuring 
the package and if user provides incorrect input - reprompt question until 
valid value is provided.
Is it a good practice to do that with debconf? 
If it is - where should I do this ?
In config script?
Postinst?

The naive asnwer is: prompt user in config script until user provides valid 
input. 

This would work fine, but on the other hand the debconf frontend could be non 
interactive. In this case, if wrong answer was preseeded, looping really 
doesn't help - because debconf just spinning in the loop without getting any 
input from user. 

Any ideas/suggestions for correct solution?


Best regards,
Yurii Oleynikov

--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/83cd318c-1501-4abb-8ae2-67d13b0d0...@gmail.com

Reply via email to