Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

fabric is building openbts metapackage instead of osmocom when running 'fab osmocom dev package' #58

Open
kheimerl opened this issue Jun 14, 2017 · 4 comments

Comments

@kheimerl
Copy link
Contributor

I've tracked it down to the following:

if package_common == 'yes':
    (f, modpath, desc) = imp.find_module('fabfile', [COMMON_DIR])
    if f is not None:
        common = imp.load_module('common_fabfile', f, modpath, desc)
        f.close()
        execute(common.package_common_lib)

The load_module call is resetting env.gsmenv to the default: 'openbts'

@9muir
Copy link
Contributor

9muir commented Jun 14, 2017

I stumbled across this too a couple of weeks ago but got distracted. I can't remember if I had a fix, let me dig through my code

@kheimerl
Copy link
Contributor Author

i have an ugly one I'm going to push soon.

@9muir
Copy link
Contributor

9muir commented Jun 14, 2017

I see, it's probably the circular load_module calls, and the fact that client/fabfile.py resets env.gsmenvunconditionally. The loading of client/fabfile.py from common should probably be conditional upon it not already having been loaded.

@kheimerl
Copy link
Contributor Author

kheimerl commented Jun 14, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants