bugfix emerge type for slotted packages

at slotted packages like the gentoo-sources, it's normal to have more than one version of the same package installed. now the emerge type can handle this correct. 
! -z is offizial shell syntax which is equal to -n
==> i dont know why i have programmed a negated negation ...

bugfix is comming ...

2014-09-29 15:16 GMT+02:00 Nico Schottelius <notifications@github.com>:

> In cdist/conf/type/__package_emerge/gencode-remote:
>
> > @@ -33,26 +33,32 @@ else
> >     state_should="present"
> >  fi
> >
> > +if [ -f "$__object/parameter/version" ]; then
> > +    version="$(cat "$__object/parameter/version")"
> > +else
> > +    version=""
> > +fi
> > +
> > +if [ ! -z "$version" ]; then
>
> ! -z is a bit strange. There is -n or in good old shell behaviour just if
> [ "$var" ]; ... (important: with quotes)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/telmich/cdist/pull/339/files#r18152353>.
>