1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-03 21:08:53 +01:00

Use alternative project if specified in parse_repoarchdescr()

This commit is contained in:
2023-07-27 12:50:05 +02:00
parent f60db24e15
commit 4138a40e02
2 changed files with 5 additions and 1 deletions

View File

@@ -6933,7 +6933,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if no_repo:
raise oscerr.WrongArgs("Repository is missing. Cannot guess build description without repository")
apiurl = self.get_api_url()
project = store_read_project('.')
project = alternative_project or store_read_project('.')
# some distros like Debian rename and move build to obs-build
if not os.path.isfile('/usr/lib/build/queryconfig') and os.path.isfile('/usr/lib/obs-build/queryconfig'):
queryconfig = '/usr/lib/obs-build/queryconfig'