Re: overhaul of the debian ocaml policy
Le 23/08/2010 01:17, Florent Monnier a écrit :
>>> in this example you can't use "origin" as a keyword too, because you
>>> can't prevent an upstream to use an "origin" field too, for example:
>>> origin="janest"
>>> OK one can grep "origin" to display its content, but not *filter* the
>>> META files that come from packagers.
>>
>> I don't understand what you mean.
>
> filter like List.filter does
>
>
> OCAML_DIR=`ocamlc -where`
> ALL_META_FILES=`ls $OCAML_DIR/*/META`
> ADDED_META_FILES=`grep -l packagers $OCAML_DIR/*/META`
>
>
> $ALL_META_FILES contains the list of all META files
> $ADDED_META_FILES contains the list of all META files that were added by
> packagers
And why `grep -l origin` wouldn't work? Of course, I am assuming that
upstream would not use origin. BTW, we should use a less generic and
likely variable name, like meta_added_by.
--
Stéphane
Reply to: