Skip to content

Commit

Permalink
Move salt patches out of qubes module
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 21, 2017
1 parent 3efd3ba commit b45f4cf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions rpm_spec/qubes-mgmt-salt-base-overrides.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rm -rf build/ *.pyc *.pyo *.o *.a *~
/srv/salt/_modules/localemod.py*

%files libs
%{python_sitelib}/qubes/*
%{python_sitelib}/qubes.mgmt*-*-py?.?.egg-info
%{python_sitelib}/qubessaltpatches/*
%{python_sitelib}/qubessaltpatches*-*-py?.?.egg-info

%changelog
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

from distutils.core import setup

setup(name = 'qubes.mgmt.patches',
setup(name = 'qubessaltpatches',
version = '1.0',
author = 'Jason Mehring',
author_email = '[email protected]',
url = 'https://github.com/nrgaway/qubes-mgmt-salt-base-overrides',
packages = ['qubes', 'qubes.mgmt', 'qubes.mgmt.patches'],
packages = ['qubessaltpatches'],
package_dir = {'': 'src'},
license ='LICENSE',
description = 'Custom modules to override existing Salt modules ' \
Expand Down
1 change: 0 additions & 1 deletion src/qubes/mgmt/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#
# Add list merging within dictupdate
if version.info < (2015, 8, 0, 0):
import qubes.mgmt.patches.update
import qubessaltpatches.update

# Apply monkey patch for salt versions less than 2015.5.5
#
# Adds url module which appears in v2015.5.5
if version.info < (2015, 5, 5, 0):
import sys
import qubes.mgmt.patches.url
import qubessaltpatches.url
url = sys.modules['qubes.mgmt.patches.url']
sys.modules['salt.utils.url'] = url

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b45f4cf

Please sign in to comment.