1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-24 03:02:12 +01:00

Avoid adding a newline to prompt in 'wipe' command

This commit is contained in:
Daniel Mach 2023-09-26 13:34:02 +02:00
parent 8eb360234e
commit 88c2bf4fea

View File

@ -7285,7 +7285,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
build_root = osc_build.calculate_build_root(apihost, prj, pac, repo, arch, user)
if opts.wipe and not opts.force:
# Confirm delete
print("Really wipe '%s'? [y/N]: " % build_root)
print("Really wipe '%s'? [y/N]: " % build_root, end="")
choice = raw_input().lower()
if choice != 'y':
print('Aborting')