Skip to content

Commit

Permalink
- core.Package.commit: make sure a _meta is created for newly added p…
Browse files Browse the repository at this point in the history
…ackages

Fixed typo (introduced in commit 6469efb).
  • Loading branch information
marcus-h committed Mar 6, 2014
1 parent 6469efb commit 720c685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osc/core.py
Expand Up @@ -1453,6 +1453,10 @@ def commit(self, msg='', verbose=False, skip_local_service_run=False, can_branch
print('')
rev = self.latest_rev()
self.update(rev=rev)
elif self.get_local_meta() is None:
# if this was a newly added package there is no _meta
# file
self.update_local_pacmeta()

def __write_storelist(self, name, data):
if len(data) == 0:
Expand Down Expand Up @@ -1565,7 +1569,7 @@ def get_local_origin_project(self):
# that the origin project is equal to the wc's project
meta = self.get_local_meta()
if meta is None:
return self.project
return self.prjname
root = ET.fromstring(meta)
return root.get('project')

Expand Down

0 comments on commit 720c685

Please sign in to comment.