1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 13:48:43 +02:00

Improve 'getbinaries' command by ignoring source and debuginfo filters when a binary name is specified

This commit is contained in:
2024-05-09 14:36:31 +02:00
parent eb7542cd98
commit 6218fc7cb0
2 changed files with 7 additions and 0 deletions

View File

@@ -8151,6 +8151,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
package = [package]
if binary is not None:
output.print_msg("Binary filename was specified, ignoring source and debuginfo filters", print_to="debug")
opts.sources = True
opts.debuginfo = True
# Set binary target directory and create if not existing
target_dir = os.path.normpath(opts.destdir)
if not os.path.isdir(target_dir):