Skip to content

Commit

Permalink
Remove /usr/lib/pulp/plugins/types/deb.json from setup.py
Browse files Browse the repository at this point in the history
This legacy file will prevent migration 0004 from working.

WARNING: This will also require removing the file from the .spec file in
pulp-packaging repository!

fixes #4951
https://pulp.plan.io/issues/4951
  • Loading branch information
quba42 committed Jun 11, 2019
1 parent efbfa1f commit ce44de8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion plugins/setup.py
Expand Up @@ -28,7 +28,6 @@
include_package_data=True,
data_files=[
('/etc/httpd/conf.d', ['etc/httpd/conf.d/pulp_deb.conf']),
('/usr/lib/pulp/plugins/types', ['types/deb.json']),
],
install_requires=[
'python-gnupg',
Expand Down
11 changes: 0 additions & 11 deletions plugins/test/unit/plugins/importers/test_importer.py
Expand Up @@ -2,7 +2,6 @@
Contains tests for pulp_deb.plugins.importers.importer.
"""
from gettext import gettext as _
import json
import os

import mock
Expand Down Expand Up @@ -33,16 +32,6 @@ def test_return_value(self):


class ModelMixIn(object):
def test_unit_keys(self):
type_file = os.path.join(os.path.dirname(__file__),
'..', '..', '..', '..',
'types', 'deb.json')
contents = json.load(open(type_file))
types = dict((x['id'], x) for x in contents['types'])
tlist = types[self.__class__.Model.TYPE_ID]['unit_key']
self.assertEquals(
sorted(self.__class__.Model.unit_key_fields),
sorted(tlist))

def test_ids(self):
self.assertEquals(self.UNIT_KEY_FIELDS,
Expand Down
24 changes: 0 additions & 24 deletions plugins/types/deb.json

This file was deleted.

0 comments on commit ce44de8

Please sign in to comment.