Control: tags -1 + pending

2015-11-20 00:56 To William:

- get a command to list active user tags, such as :
$ aptitude show-user-tags
or :
$ aptitude show user-tag

I am working on this.

So I was working on this, and had a prototype:

 # aptitude -v add-user-tag tag-1 '~n^aptitude$'
 Applied user-tag operation 'add tag-1' to: aptitude
 Applied user-tag operation 'add tag-1' to: aptitude:i386
# aptitude -v add-user-tag tag-2 '~n^aptitude$'
 Applied user-tag operation 'add tag-2' to: aptitude
 Applied user-tag operation 'add tag-2' to: aptitude:i386
# aptitude -v add-user-tag tag-3 '~n^aptitude$'
 Applied user-tag operation 'add tag-3' to: aptitude
 Applied user-tag operation 'add tag-3' to: aptitude:i386
# aptitude -v add-user-tag tag-4 '~n^aptitude-doc-.*'
 Applied user-tag operation 'add tag-4' to: aptitude-doc-cs
 Applied user-tag operation 'add tag-4' to: aptitude-doc-en
 Applied user-tag operation 'add tag-4' to: aptitude-doc-es
 Applied user-tag operation 'add tag-4' to: aptitude-doc-fi
 Applied user-tag operation 'add tag-4' to: aptitude-doc-fr
 Applied user-tag operation 'add tag-4' to: aptitude-doc-it
 Applied user-tag operation 'add tag-4' to: aptitude-doc-ja
 Applied user-tag operation 'add tag-4' to: aptitude-doc-ru
# aptitude show-user-tags '~naptitude.*'
 aptitude-doc-cs: tag-4
 aptitude-doc-en: tag-4
 aptitude-doc-es: tag-4
 aptitude-doc-fi: tag-4
 aptitude-doc-fr: tag-4
 aptitude-doc-it: tag-4
 aptitude-doc-ja: tag-4
 aptitude-doc-ru: tag-4
 aptitude: tag-1, tag-2, tag-3
 aptitude:i386: tag-1, tag-2, tag-3
# aptitude -v show-user-tags '~naptitude.*'
 aptitude-doc-cs: tag-4
 aptitude-doc-en: tag-4
 aptitude-doc-es: tag-4
 aptitude-doc-fi: tag-4
 aptitude-doc-fr: tag-4
 aptitude-doc-it: tag-4
 aptitude-doc-ja: tag-4
 aptitude-dbg: (no tags)
 aptitude-robot: (no tags)
 aptitude-doc-ru: tag-4
 aptitude-doc: (no tags)
 aptitude-common: (no tags)
 aptitude: tag-1, tag-2, tag-3
 aptitude:i386: tag-1, tag-2, tag-3


But I realised that the command was odd (it is ad-hoc and departs from
almost anything else that aptitude does).

And also, that the output would be very similar to adding another field
and search, and that search basically does all what we need.

So:

- get a command to search packages and see their tags :
$ aptitude search em
i      emacs           test,foo
i      emfoo           bar
i      barem           other-tag

This has been requested in:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498442

... I implemented it in this way now, please see that bug report for
more explanations.


Cheers.
--
Manuel A. Fernandez Montecelo <[email protected]>

_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel

Reply via email to