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. 
Yes, the = in front of the package name is required.

because the call to emerge for installing a slotted package is for example:

emerge =sys-kernel/gentoo-sources-3.16.2

This is required.

Daniel

2014-09-30 16:21 GMT+02:00 Nico Schottelius <notifications@github.com>:

> In cdist/conf/type/__package_emerge/gencode-remote:
>
> > @@ -27,37 +27,40 @@ else
> >     name="$__object_id"
> >  fi
> >
> > -if [ -f "$__object/parameter/state" ]; then
> > -   state_should="$(cat "$__object/parameter/state")"
> > -else
> > -   state_should="present"
> > +state_should="$(cat "$__object/parameter/state")"
> > +
> > +version="$(cat "$__object/parameter/version")"
> > +
> > +if [ -n "$version" ]; then
> > +    name="=$name-$version"
>
> Just wondering, the "=" in front of the name is required / not a typo?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/telmich/cdist/pull/339/files#r18219814>.
>