Skip to content

Commit

Permalink
prepublishing: prepublish for non-globbing interpolated publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasheinrich committed Oct 3, 2017
1 parent fec3498 commit c64f3f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion packtivity/handlers/publisher_handlers.py
Expand Up @@ -69,4 +69,3 @@ def manual_pub(publisher,parameters,state):
break
click.secho('publishing', fg = 'green')
return data

3 changes: 3 additions & 0 deletions packtivity/syncbackends.py
Expand Up @@ -67,6 +67,9 @@ def prepublish(spec, parameters, state, pack_config):
pub = spec['publisher']
if pub['publisher_type'] in ['frompar-pub','constant-pub']:
return publish(pub,parameters,state,pack_config)
if pub['publisher_type'] == 'interpolated-pub':
if pub['glob'] == False:
return publish(pub,parameters,state,pack_config)
return None

def run_packtivity(spec, parameters,state,metadata,config):
Expand Down

0 comments on commit c64f3f3

Please sign in to comment.