ITP: inetsim

Lukas Schwaighofer lukas at schwaighofer.name
Tue Feb 13 19:37:55 UTC 2018


On Tue, 13 Feb 2018 05:32:10 +0000
GengYu Rao <zouyoo at outlook.com> wrote:

> >   (There is now also some duplication of your logic, please remove
> > that so the script becomes easier to maintain.) 
> I added the
> if [ -z "$2" ] ; then
> and use it to test if this is the upgrade or the install.
> I don't know if this is the right way to do so.

Keep matching on [ "$1" = "configure" ] and use the same case for
everything! It doesn't matter for you if it's a new installation or an
upgrade.

> > * maintainer-script-should-not-use-recursive-chown-or-chmod: A bit
> >    tricker to fix.  If you're having trouble feel free to ask for
> > help.  
> I added the runuser, but the lintian still gave the warning.
> Maybe the lintian didn't got that? or i'm using it in a wrong way?

Create the topmost directory, then chmod only that directory (no -R
required). Afterwards run the `cp` command with `runuser`; this will
ensure that the copied files belong to that user.

Regards
Lukas



More information about the Pkg-security-team mailing list