Merge lp:~anybox/anybox.recipe.openerp/fix_standalone_for_5.0_module into lp:anybox.recipe.openerp

Proposed by Jean-Sébastien SUZANNE
Status: Merged
Merged at revision: 401
Proposed branch: lp:~anybox/anybox.recipe.openerp/fix_standalone_for_5.0_module
Merge into: lp:anybox.recipe.openerp
Diff against target: 14 lines (+4/-1)
1 file modified
anybox/recipe/openerp/vcs/base.py (+4/-1)
To merge this branch: bzr merge lp:~anybox/anybox.recipe.openerp/fix_standalone_for_5.0_module
Reviewer Review Type Date Requested Status
Georges Racinet Approve
Review via email: mp+179674@code.launchpad.net

Description of the change

In OPenERP 5.0 the manifest are __terp__.py not __openerp__.py

To post a comment you must log in.
Revision history for this message
Georges Racinet (gracinet) wrote :

Indeed, I had done the init part earlier, and forgotten about the update…

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'anybox/recipe/openerp/vcs/base.py'
2--- anybox/recipe/openerp/vcs/base.py 2013-07-26 13:25:12 +0000
3+++ anybox/recipe/openerp/vcs/base.py 2013-08-12 11:44:56 +0000
4@@ -101,7 +101,10 @@
5 name = os.path.split(target_dir)[-1]
6 new_target = os.path.join(target_dir, name)
7 manifest = os.path.join(new_target, '__openerp__.py')
8- if cls.is_versioned(new_target) and os.path.exists(manifest):
9+ manifest2 = os.path.join(new_target, '__terp__.py')
10+ exists = os.path.exists(manifest)
11+ exists = exists or os.path.exists(manifest2)
12+ if cls.is_versioned(new_target) and exists:
13 return new_target
14 return target_dir
15

Subscribers

People subscribed via source and target branches