~abentley/charmworld/per-user-repository

« back to all changes in this revision

Viewing changes to charmworld/jobs/ingest.py

[r=sinzui][bug=][author=abentley] Add version to charm-ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
from charmworld.models import (
38
38
    CharmFileSet,
39
39
    CharmSource,
 
40
    construct_charm_id,
40
41
    getconnection,
41
42
    getdb,
42
43
    getfs,
267
268
    name = 'update'
268
269
 
269
270
    def run(self, payload):
270
 
        payload['_id'] = payload['branch_spec']
 
271
        payload['_id'] = construct_charm_id(payload)
271
272
        charm_data = self.db.charms.find_one(payload['_id'])
272
273
        if charm_data is None:
273
274
            charm_data = {}