On Sun, Apr 13, 2008 at 12:23:33PM +0200, Bernhard R. Link wrote:
> * Marc Haber <[EMAIL PROTECTED]> [080411 18:29]:
> > from the man page, I guess that it is only possible to search for
> > "Package" and "Source" headers, and that no wildcards are supported.
> >
> > Empirical tests have shown that 
> >
> >    reprepro listfilter etch 'Package'
> >
> > does not what I expect, listing all binary packages in etch - it also
> > lists source packages.
> >
> > Are wildcards supported?
> 
> The manpage currently states:
> 
> |listfilter codename condition
> |  as  list,  but does not list a single package, but all
> |  packages matching the given condition.
> |
> |  reprepro -b . -T deb listfilter test2 'Source (==blub)
> |  |  (  !Source , Package (==blub) )' will e.g. find all
> |  .deb Packages with Source  blub.

This is a surprise. The meaning of the comma is not explained, and the
| is usually parsed as "or", which would make your explanation wrong.

Additionally, the requirement to put the value to be compared against
in parenthesis ("Source (==blub)") is a very uncommon syntax which I
have never seen outside Package Dependencies.

> |   (Except those also specifying a version number with its Source, as
> |   binary and source version differ).
> |
> |  The values checked are directly  the  headers  in  the
> |  repspective  index file compared alphabetically.  That
> |  means that each part <Fieldname> (<cmp> <value>) of the for-
> |  mula  will be true for exactly those package that have
> |  in the Package or Sources file a  line  starting  with
> |  <fieldname>  and a value is alphabetically <cmp> to <value>.
> 
> So 'Package' will find everything with a Package field, which
> should be everything, because both Packages and Sources lines
> contain 'Packages' fields.

So it should be 'Package & !Source'? No, "Unexpected character '&'".

> And Wildcards are not supported.

They should

> Any suggestions for a better text to describe those lines
> highly welcome, I suck at writing documentation.

Unfortunately, I am far away from even understanding the bizarre
syntax to even use it, let alone write documentation about it.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to