mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 06:46:13 +01:00
Change pop_project_package_from_args() to use get_store() to support Git SCM
This commit is contained in:
parent
aae20248d7
commit
8aedb1c28f
@ -676,9 +676,8 @@ def pop_project_package_from_args(
|
|||||||
|
|
||||||
if project == ".":
|
if project == ".":
|
||||||
# project name taken from the working copy
|
# project name taken from the working copy
|
||||||
project_store = osc_store.Store(path)
|
|
||||||
try:
|
try:
|
||||||
project_store = osc_store.Store(path)
|
project_store = osc_store.get_store(path)
|
||||||
project = project_store.project
|
project = project_store.project
|
||||||
except oscerr.NoWorkingCopy:
|
except oscerr.NoWorkingCopy:
|
||||||
if not project_is_optional:
|
if not project_is_optional:
|
||||||
@ -688,7 +687,7 @@ def pop_project_package_from_args(
|
|||||||
if package == ".":
|
if package == ".":
|
||||||
# package name taken from the working copy
|
# package name taken from the working copy
|
||||||
try:
|
try:
|
||||||
package_store = osc_store.Store(path)
|
package_store = osc_store.get_store(path)
|
||||||
package_store.assert_is_package()
|
package_store.assert_is_package()
|
||||||
package = package_store.package
|
package = package_store.package
|
||||||
except oscerr.NoWorkingCopy:
|
except oscerr.NoWorkingCopy:
|
||||||
|
Loading…
Reference in New Issue
Block a user