After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725717 - tracker-tag is missing a command line option for AND-operations
tracker-tag is missing a command line option for AND-operations
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
0.16.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
Depends on:
Blocks:
 
 
Reported: 2014-03-05 11:32 UTC by knut
Modified: 2014-03-25 10:46 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12



Description knut 2014-03-05 11:32:57 UTC
Description:
tracker-tag used to have AND operations for the -t option.
The command line option -r was provided to use OR operations.

Now tracker-tag uses OR operations, and it is not possible any more to perform an AND-search.
Also this makes the -r option redundant.

Steps to reproduce the problem:
1. Add tags 'foo' 'bar' to file1, 'foo' to file2.
2. tracker-tag -t foo bar -s

Actual Results:
file1 and file2

Expected Results:
file1

How often does this happen?
Every time
Comment 1 Martyn Russell 2014-03-20 15:55:59 UTC
OK, this is currently fixed in this branch:

  https://git.gnome.org/browse/tracker/log/?h=tracker-tag-and-operator-fix

However, given the current hard code freeze throughout GNOME, we're not supposed to push this just yet.

So expect this for 1.0.x

Thanks for reporting the bug Knut! :)
Comment 2 Martyn Russell 2014-03-25 10:46:37 UTC
Pushed to master, should be in 1.0.1