[opensuse-factory] Inconsistency when using osc ls
Hi! I am currently preparing a large maintenance update for SLE-12/15 and ran into a problem with "osc ls" which has inconsistent output depending on how the command is invoked. I'm using "osc ls" to assemble a list of all Azure packages in the SLE maintenance update and also use "osc ls $PROJECT $PACKAGE" to verify whether an individual package is present in a certain project. 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:~> "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? Thanks, Adrian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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
Hi Marcus! On 10/15/20 11:02 AM, Marcus Hüwe wrote:
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
Great, that's what I was looking for.
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).
Okay, thanks. I have adjusted my script now and I'm getting the expected results. Adrian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
You can use osc meta pkg to see the actual project an inherited package resides. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
John Paul Adrian Glaubitz
-
Marcus Hüwe