On 2020-10-15 10:30:10 +0200, John Paul Adrian Glaubitz wrote: <SNIP>
To my surprise, I noticed that "osc ls $PROJECT" is not listing all packages that can be found with "osc ls $PROJECT $PACKAGE" which is most likely a result of the latter showing inherited packages while the former does not.
Example:
"osc ls $PROJECT | grep $PACKAGE" does not show a particular package:
glaubitz@suse-laptop:~> osc ls openSUSE:Leap:15.2:Update |grep pidgin glaubitz@suse-laptop:~>
If you pass --expand/-e to the ls command, osc will show the "inherited" packages: osc ls -e openSUSE:Leap:15.2:Update | grep pidgin
"osc ls $PROJECT $PACKAGE" lists that package:
glaubitz@suse-laptop:~> osc ls openSUSE:Leap:15.2:Update pidgin pidgin-2.13.0.tar.bz2 pidgin-2.13.0.tar.bz2.asc pidgin-Leaky-deprecation-clean-ups.patch pidgin-enable-sni-gnutls.patch pidgin-fix-perl-build.patch pidgin-ncurses-6.0-accessors.patch pidgin-nonblock-common.patch pidgin-nonblock-gwim.patch pidgin-prefs.xml pidgin-use-default-alsa.patch pidgin.changes pidgin.keyring pidgin.spec glaubitz@suse-laptop:~>
Any idea how I can make "osc ls $PROJECT $PACKAGE" to be consistent with "osc ls $PROJECT" and not list inherited packages?
That's currently not supported by the API. We would need to have an additional flag so that it does not follow a project link in the "osc ls $PROJECT $PACKAGE" case (if you are interested, have a look at the "show_package" method in the "SourceController" class). The other way is "supported" (see above). Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org