Skip to content

Commit

Permalink
Merge branch 'fix_bsc#1012592' of https://github.com/lethliel/osc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-h committed Feb 8, 2017
2 parents 025ecec + 8cf89fa commit 9e6d1a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4799,16 +4799,19 @@ def checkout_package(apiurl, project, package,
# if project roots were previously inconsistent
root_dots = "../../"
if is_project_dir(root_dots):
oldproj = store_read_project(root_dots)
if conf.config['checkout_no_colon']:
oldproj = store_read_project(root_dots)
n = len(oldproj.split(':'))
else:
n = 1
if root_dots == '.':
root_dots = ''
root_dots = root_dots + "../" * n

if root_dots != '.':
if conf.config['verbose']:
print("found root of %s at %s" % (oldproj, root_dots))
print("%s is project dir of %s. Root found at %s" %
(prj_dir, oldproj, os.path.abspath(root_dots)))
prj_dir = root_dots + prj_dir

if not pathname:
Expand Down

0 comments on commit 9e6d1a5

Please sign in to comment.