[Digikam-devel] Template identification after camera download don't work...

Marcel Wiesweg marcel.wiesweg at gmx.de
Fri Jun 26 14:29:42 BST 2009


> Since your commit yesterday evening, something is broken.
>
> Open camera GUI, and set a template to apply. Download an item.
> Template info are applied to XMP.
>
> Now go to target album and select item. In Caption and Tags, Template
> applied to image must be selected in combobox, but it's not the case.
>
> With my last debug statement, i can see :
>
> digikam(25834)/digikam (core) Digikam::Template::operator==: ("Linus")
> ("Linus") true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
> kernel coordinator" "Linux kernel coordinator" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
> team" "Linux team" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "(C)
> Linus Torvalds - 2009" "(C) Linus Torvalds - 2009" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "" "GPL"
> false
> digikam(25834)/digikam (core) Digikam::Template::operator==:
> "www.kernel.org" "www.kernel.org" true
> digikam(25834)/digikam (core) Digikam::Template::operator==:
> "www.kernel.org" "To be distributed over the world" false

There were two subtle copy&paste bugs in ImageScanner when reading the 
metadata into the database, first reading a null rightsUsageTerms, secondly 
reading the source a second time for instructions. That explains the two 
failures above.

Marcel




More information about the Digikam-devel mailing list