Re: Fwd: Why does lintian tell me this?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Thanks a lot. This fixed it.
I'm using add-shell now, too.
Am 10.11.2011 01:48, schrieb Michael Tautschnig:
>> Hello everybody!
>>
>> When I'm running lintian on my almost finished package, it tells me:
>>
>> E: jailkit: duplicate-updaterc.d-calls-in-postinst jailkit
>> E: jailkit: duplicate-updaterc.d-calls-in-postrm jailkit
>>
>> But why? I do not see anything duplicate there.
>>
>
> You would need to look at the final result ...
>
>> Here are the complete files:
>>
>> postinst
>>
>> #!/bin/sh
>> #DEBHELPER#
>> set -e
>> if ! grep /usr/sbin/jk_chrootsh /etc/shells >/dev/null; then \
>> echo "/usr/sbin/jk_chrootsh" >> /etc/shells ;\
>> fi
>>
>> if [ -x "/etc/init.d/jailkit" ]; then
>> update-rc.d jailkit defaults >/dev/null
>> if [ -x /usr/sbin/invoke-rc.d ]; then
>> invoke-rc.d jailkit start
>> else
>> /etc/init.d/jailkit start
>> fi
>> fi
>>
>> exit 0
>>
> [...]
>
> The "#DEBHELPER#" is there for a reason: it's for debhelper to put useful code
> in there. And that precisely will be this if [ -x "/etc/init.d/jailkit" ]; then
> ... fi bit. Just use
>
> #!/bin/sh
>
> set -e
>
> if ! grep /usr/sbin/jk_chrootsh /etc/shells >/dev/null; then \
> echo "/usr/sbin/jk_chrootsh" >> /etc/shells ;\
> fi
>
> #DEBHELPER#
>
> and you should be fine. Same for your other file.
>
> Best,
> Michael
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iF4EAREIAAYFAk67JpMACgkQ3u1SIc8s7PU4PAD/VctY04MX9kNQQJwgbwwL244J
QC4lBSktOdO4GAOaSE0A/jKAQYlfWt6iXigNRWGKCxD/AcOQf4paU5bbG1q0oUp3
=D/sQ
-----END PGP SIGNATURE-----
Reply to: