Hello Nico,

have you looked at the code from commit "c5eab27d36fa07ed4"
i have tested the code many times, and I don't find the code path which
generate remote-code
when nothing is to do.

please point me ..

Thank's Daniel


2013/12/6 Nico Schottelius <notifications@github.com>

> In cdist/conf/type/__zypper_repo/gencode-remote:
>
> > +
> > +act_id=""
> > +if grep -q "$id" "$__object/explorer/all_repo_ids"; then
> > +    act_id="$id"
> > +elif grep -q "$repo_id" "$__object/explorer/all_repo_
> ids"; then
> > +    act_id="$repo_id"
> > +fi
> > +
> > +repostate="disabled"
> > +if grep -q "$act_id" "$__object/explorer/enabled_repo_ids"; then
> > +    repostate="enabled"
> > +fi
> > +
> > +
> > +case "$state" in
> > +   present)
>
> Ping - I think this block is the last issue: The gencode remote part still
> always emit code, if even not necessary. If you check if it is really
> necessary and only output code in that case we can merge the type - one
> last step to go!
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/telmich/cdist/pull/216/files#r8160531>
> .
>