Setting back to master.
This commit is contained in:
parent
7ffd6748f3
commit
208d1c4185
|
@ -550,8 +550,8 @@ def harvest_source_reindex(context, data_dict):
|
||||||
if 'extras_as_string'in context:
|
if 'extras_as_string'in context:
|
||||||
del context['extras_as_string']
|
del context['extras_as_string']
|
||||||
context.update({'ignore_auth': True})
|
context.update({'ignore_auth': True})
|
||||||
package_dict = logic.get_action('harvest_source_show')(
|
package_dict = logic.get_action('harvest_source_show')(context,
|
||||||
context, {'id': harvest_source_id})
|
{'id': harvest_source_id})
|
||||||
log.debug('Updating search index for harvest source: {0}'.format(
|
log.debug('Updating search index for harvest source: {0}'.format(
|
||||||
package_dict.get('name') or harvest_source_id))
|
package_dict.get('name') or harvest_source_id))
|
||||||
|
|
||||||
|
@ -562,10 +562,7 @@ def harvest_source_reindex(context, data_dict):
|
||||||
for key, value in package_dict.iteritems():
|
for key, value in package_dict.iteritems():
|
||||||
if key not in config:
|
if key not in config:
|
||||||
new_dict[key] = value
|
new_dict[key] = value
|
||||||
|
|
||||||
package_index = PackageSearchIndex()
|
package_index = PackageSearchIndex()
|
||||||
package_index.index_package(
|
package_index.index_package(new_dict, defer_commit=defer_commit)
|
||||||
new_dict,
|
|
||||||
defer_commit=defer_commit)
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue