Bug 14448 - Search operation returns 0 if search path does not exist
Summary: Search operation returns 0 if search path does not exist
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.4.5
Hardware: x86 Multiple
: Undecided major
Target Milestone: 0.5.0
Assignee: Alex Stewart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-06-22 17:35 UTC by Bill Pittman
Modified: 2021-07-28 16:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Pittman 2021-06-22 17:35:02 UTC
opkg search /non/existing/file 

The above command returns 0 and no stdout/stderr output.  Expected to see some sort of FileNotFound error and a non-zero return code.
Comment 1 Alex Stewart 2021-07-28 16:20:48 UTC
Should be resolved by opkg commit 3f3274185d68c36cb4a31bae863e3ad089e97ab4.

https://git.yoctoproject.org/cgit/cgit.cgi/opkg/commit/?id=3f3274185d68c36cb4a31bae863e3ad089e97ab4