[KPhotoAlbum] Command line filtering

Robert Krawitz rlk at alum.mit.edu
Sun Feb 24 21:07:03 GMT 2019


On Sun, 24 Feb 2019 21:57:01 +0100, Johannes Zarl-Zierl wrote:
> Hi Robert,
>
> I have to say, I really like the whole idea of kpa-filter. I still have some trouble testing it, though. Maybe some of my problems are bugs, probably I'm just using it wrong:
>
> 1. Calling kpa-filter without arguments loops indefinitely
> At least, it seems like this - I used Ctrl-C after a few minutes. I'm not sure what the intended outcome would be. I had expected either a listing of all files in the index.xml or just the help message.
>
> 1a: My naive try to get a file listing did result in the same infinite loop:
> $ contrib/kpa-filter '($yearFrom > 1900)'

On my system, it does list every file (that's what it's supposed to do).

> 2. How do I use the "--db" option?
> I tried the following command in the kphotoalbum source directory:
> $ kpa-filter --db "$PWD/demo/index.xml"
> Could not create file parser context for file "1": No such file or directory at contrib/kpa-filter line 494.

Bug, fixed in the latest.

> 3. The "--count" option does seem to do nothing in the following call:
> $ kpa-filter -c -l cat:Keywords

Another bug fixed in the latest (ef1864e897fe65d27efb8e34f13bd1252e62cbdb).
-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

***  MIT Engineers   A Proud Tradition   http://mitathletics.com  ***
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Kphotoalbum mailing list