You can also check how I solved this in dbconfig-common in the dbc_get_app_pass function that is called during configure of any package that depends on dbconfig-common: https://sources.debian.net/src/dbconfig-common/1.8.52/dpkg/common/#L853 Although in this case the non-interactive mode is easier because then you don't do the check as the password is empty. But you can see how to check for that here: https://sources.debian.net/src/dbconfig-common/1.8.52/dpkg/common/#L715 Paul On 10-08-15 08:49, Gianfranco Costamagna wrote: > > Hi, > > sorry for top posting, I'm on mobile. > > can you please try to look at > virtualbox-ext-pack and see if it fits your needs? > > It is a package that downloads stuff from the internet after showing you a license and asking to accept it. > > cheers, > > G. > > > ------------------------------ > Il lun 10 ago 2015 01:15 CEST, Yurkao ha scritto: > >> 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-REQUEST@lists.debian.org >> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org >> Archive: [🔎] 83CD318C-1501-4ABB-8AE2-67D13B0D075A@gmail.com">https://lists.debian.org/[🔎] 83CD318C-1501-4ABB-8AE2-67D13B0D075A@gmail.com >> > >
Attachment:
signature.asc
Description: OpenPGP digital signature