Skip to content

Commit

Permalink
do not update kernel if do 'ck pull all' - preparing to add to distro…
Browse files Browse the repository at this point in the history
… ...
  • Loading branch information
gfursin committed Jun 25, 2015
1 parent 793534d commit 6640507
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions repo/module/all/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def init(i):
def pull(i):
"""
Input: {
(kernel) - if 'yes', pull kernel too (unless installed as a package)
}
Output: {
Expand All @@ -50,22 +51,23 @@ def pull(i):

o=i.get('out','')

ck_root=ck.work['env_root']
os.chdir(ck_root)
if i.get('kernel','')=='yes':
ck_root=ck.work['env_root']
os.chdir(ck_root)

if o=='con':
ck.out('Updating CK from GITHUB ...')
ck.out('')
ck.out(' cd '+ck_root)
ck.out(' git pull')
ck.out('')
if o=='con':
ck.out('Updating CK from GITHUB ...')
ck.out('')
ck.out(' cd '+ck_root)
ck.out(' git pull')
ck.out('')

rx=os.system('git pull')
if rx>0:
return {'return':1, 'error':'CK update failed'}
rx=os.system('git pull')
if rx>0:
return {'return':1, 'error':'CK update failed'}

if o=='con':
ck.out('')
if o=='con':
ck.out('')

return ck.access({'action':'pull',
'module_uoa':'repo',
Expand Down

0 comments on commit 6640507

Please sign in to comment.