Skip to content

Commit

Permalink
Use the correct path in core.createPackageDir
Browse files Browse the repository at this point in the history
The old implementation only worked, if cwd was a project working
copy (even in this case, it may did the wrong thing...).
  • Loading branch information
marcus-h committed Jun 29, 2017
1 parent ffe68fd commit c9dfe03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6794,9 +6794,9 @@ def createPackageDir(pathname, prj_obj=None):
prj_dir, pac_dir = getPrjPacPaths(pathname)
if is_project_dir(prj_dir):
global store
if not os.path.exists(pac_dir+store):
if not os.path.exists(os.path.join(pathname, store)):
prj = prj_obj or Project(prj_dir, False)
Package.init_package(prj.apiurl, prj.name, pac_dir, pac_dir)
Package.init_package(prj.apiurl, prj.name, pac_dir, pathname)
prj.addPackage(pac_dir)
print(statfrmt('A', os.path.normpath(pathname)))
else:
Expand Down

0 comments on commit c9dfe03

Please sign in to comment.