mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-21 01:32:10 +01:00
Add hint how to deal with scmsync-nobranch scenarios
This commit is contained in:
parent
ffca873272
commit
52431dda78
@ -3618,7 +3618,10 @@ def branch_pkg(
|
||||
|
||||
# error out if we're branching a scmsync package (we'd end up with garbage anyway)
|
||||
if root is not None and root.find("scmsync") is not None:
|
||||
msg = "Cannot branch a package with <scmsync> set."
|
||||
msg = ("osc cannot branch packages with <scmsync>, i.e. externally "
|
||||
"managed sources. Often, the URL for cloning is also the URL "
|
||||
"for a collaborative web interface where you can fork (branch). "
|
||||
"The scmsync URL was: " + root.find("scmsync").text)
|
||||
if devel_project:
|
||||
raise oscerr.PackageError(devel_project, devel_package, msg)
|
||||
raise oscerr.PackageError(src_project, src_package, msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user