Regarding %T Tagged 1 No Outputs “*” if the package is tagged, nothing otherwise.^[16] Mention if we're talking about the (--)add-user-tag tags (sounds like it) or some other tags. I can't test to find out as ^[16] Currently tagging is not supported; this escape is for future use. Wait, now it sounds like some other tags, e.g., debtags. OK, anyway do add a %escape to show if a packages has any add-user-tag tags. Hmmm, maybe a count of how many too if any... And maybe an additonal %escape to give all their names...
Also in the docs,
| | |Select packages that are |
|?user-tag | |marked with a user-tag |
| | |matching the regular |
| | |expression user-tag. |
Say
?user-tag(user-tag)
just like you (almost!, harmonize with the above please) do here:
?user-tag(tag)
This term matches any package that is marked with a user-tag matching the
regular expression tag.
Also say debtags here,
?tag(tag), ~Gtag
Matches packages whose Tag field matches the regular expression tag. For
^DEBTAGS
instance, the pattern ?tag(game::strategy) would match strategy games.
For more information on tags and debtags, see http://
debtags.alioth.debian.org.
just like you do here:
|?tag(tag) |~Gtag |Select packages that have |
| | |the given debtags tag. |
Also do add commands to: *Remove all user-tags from <package>s: mytag1 mytag2... all zapped in one shot without even having to list them one by one on the command line. And maybe implement: *Add several user-tags at once to <package>s.
Also we note there is no error checking. # aptitude remove-user-tag jidanni2 libnet-dns-perl Writing extended state information... Done # aptitude remove-user-tag jidanni2 libnet-dns-perl # aptitude remove-user-tag jidanni2 libnet-dns-perl The only way to detect if aptitude successfully removed a tag is to note that it prints a Writing extended state information... Done message. If there is no message that meant something went wrong. But no different $? is set.
2008-09-13 13:03 jidanni@jidanni.org: bug report.