Skip to content

Commit

Permalink
Merge e3e2941 into 0c63705
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Oct 7, 2018
2 parents 0c63705 + e3e2941 commit 25e7b56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dataflows/processors/add_metadata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import copy


def add_metadata(**metadata):

metadata = copy.deepcopy(metadata)
if 'resources' in metadata:
del metadata['resources']

def func(package):
package.pkg.descriptor.update(metadata)
yield package.pkg
Expand Down

0 comments on commit 25e7b56

Please sign in to comment.