Bug 15396 - Feature request: support multiple matching patterns in information operations
Summary: Feature request: support multiple matching patterns in information operations
Status: ACCEPTED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: next-patch
Assignee: Alex Stewart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-02-09 22:36 UTC by Jörg Bleyel
Modified: 2024-02-12 23:35 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments
Filter patch (2.38 KB, application/mbox)
2024-02-09 22:36 UTC, Jörg Bleyel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Bleyel 2024-02-09 22:36:20 UTC
Created attachment 5014 [details]
Filter patch

I like to have multiple filter for these commands:

opkg list
opkg list-installed
opkg list-upgradable
opkg info
opkg status

I have added my patch but this patch only allows two filter instead of one filter.

You may have a better solution to add more filter.

Thanks
Comment 1 Alex Stewart 2024-02-12 23:09:19 UTC
Hey Jorg. I agree it seems reasonable that you should be able to provide multiple matching patterns to the informational commands you listed. So I don't object to this enhancement.

I'll add the detail that multiple matching patterns could be interpreted either as a UNION or INTERSECTION operation. (ie. a package name must match pattern_a OR pattern_b; versus having to match pattern_a AND pattern_b). I imagine that users would prefer the UNION/OR operation, since the alternative can easily be achieved by passing the opkg output into successive grep calls.

I'll add this enhancement to the backlog.