1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00

copypac: Do not enforce source revision when revision is not specified on the command line

This commit is contained in:
Daniel Mach 2023-01-26 11:04:00 +01:00
parent 208dbdf6d1
commit 53b9cc3a65

View File

@ -3349,9 +3349,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.message:
comment = opts.message
else:
if not rev:
rev = show_upstream_rev(src_apiurl, src_project, src_package)
comment = 'osc copypac from project:%s package:%s revision:%s' % (src_project, src_package, rev)
src_rev = rev or show_upstream_rev(src_apiurl, src_project, src_package)
comment = 'osc copypac from project:%s package:%s revision:%s' % (src_project, src_package, src_rev)
if opts.keep_link:
comment += ", using keep-link"
if opts.expand: