Re: Kernel-package, fix version 2 ...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, 22 Oct 2005 23:50:10 +0200
Sven Luther <sven.luther@wanadoo.fr> wrote:
> BTW, my new plan makes me consider two things :
>
> 1) how can i check if there is only one entry in the ramdisk=
> line ? Reading the length of the list, or doing a shift and checking
> for and empty list ?
split it with the delimiting character (I proposed colon - as in
$PATH - but don't know if it makes better sense to use comma or space).
Here's what you deciphered yourself tonight in yaird, splitting a path
into directoy/file components:
my @components = split (/\/+/, $path);
If you want _either_ colon, comma or whitespace as delimiter (not sure
that is a good idea though) then something like this should work:
my @entries = split (/[:,\s]+/, $line);
> The second issue is not really related to this plan, but we really
> want to debconfify the kernel-package kernel scripts, this would mean
> replacing all die and printing to stdout with proper debconf
> messages, and inputs in the same way, and maybe redesigning some. I
> can do this in shell, but never tried the perl solution previously.
Please do not bloat the postinst code! Separate it into a helper tool
instead!
- Jonas
- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
- Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDWuCcn7DbMsAkQLgRAuySAJ9glkhVfqrv59et5495ITj97Jnn/QCdGZQX
qTpx9Tnccq8UStOUbCpx3Xk=
=B/Le
-----END PGP SIGNATURE-----
Reply to: