1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

Change pop_project_package_from_args() to use get_store() to support Git SCM

This commit is contained in:
Daniel Mach 2023-07-28 08:22:29 +02:00
parent aae20248d7
commit 8aedb1c28f

View File

@ -676,9 +676,8 @@ def pop_project_package_from_args(
if project == ".":
# project name taken from the working copy
project_store = osc_store.Store(path)
try:
project_store = osc_store.Store(path)
project_store = osc_store.get_store(path)
project = project_store.project
except oscerr.NoWorkingCopy:
if not project_is_optional:
@ -688,7 +687,7 @@ def pop_project_package_from_args(
if package == ".":
# package name taken from the working copy
try:
package_store = osc_store.Store(path)
package_store = osc_store.get_store(path)
package_store.assert_is_package()
package = package_store.package
except oscerr.NoWorkingCopy: