updating to upstream patch release 0.13.2

e9
Clint Savage 12 years ago
parent 9d98231cf0
commit 3d4e91304e

1
.gitignore vendored

@ -13,3 +13,4 @@
/salt-0.12.0.tar.gz
/salt-0.12.1.tar.gz
/salt-0.13.1.tar.gz
/salt-0.13.2.tar.gz

@ -1,39 +0,0 @@
From 7a5a8b54b4a2c7ce8fa972a70693959835e65db8 Mon Sep 17 00:00:00 2001
From: Pedro Algarvio <pedro@algarvio.me>
Date: Wed, 16 Jan 2013 19:34:15 +0000
Subject: [PATCH] Defer imports to a later stage so Jinja2 does not become a
build dependency. Fixes #3293.
---
salt/utils/__init__.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index 290339d..11f428d 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -30,8 +30,6 @@
HAS_FNCTL = False
# Import salt libs
-import salt.minion
-import salt.payload
from salt.exceptions import SaltClientError, CommandNotFoundError
@@ -196,6 +194,12 @@ def daemonize_if(opts, **kwargs):
data[key[6:]] = val
if not 'jid' in data:
return
+
+ # Late import salt libs to overcome circular imports and to allow building
+ # salt without making Jinja2 a build dependency
+ import salt.minon
+ import salt.payload
+
serial = salt.payload.Serial(opts)
proc_dir = salt.minion.get_proc_dir(opts['cachedir'])
fn_ = os.path.join(proc_dir, data['jid'])
--
1.7.10

@ -1,45 +0,0 @@
From 56cf893eb2fb61a6010235eda2f35170cd81fefa Mon Sep 17 00:00:00 2001
From: Pedro Algarvio <pedro@algarvio.me>
Date: Wed, 16 Jan 2013 20:14:43 +0000
Subject: [PATCH] Jinja2 is no longer a build dependency. Fixes #3293.
---
salt/utils/templates.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/salt/utils/templates.py b/salt/utils/templates.py
index a75bcb4..60631ce 100644
--- a/salt/utils/templates.py
+++ b/salt/utils/templates.py
@@ -12,14 +12,10 @@
import tempfile
import traceback
-# Import third party libs
-import jinja2
-import jinja2.ext
-
# Import salt libs
import salt.utils
import salt.exceptions
-from salt.utils.jinja import SaltCacheLoader as JinjaSaltCacheLoader
+
log = logging.getLogger(__name__)
@@ -72,6 +68,12 @@ def render_tmpl(tmplsrc, from_str=False, to_str=False,
def render_jinja_tmpl(tmplstr, context, tmplpath=None):
+ # Late import Jinja2 to allow building salt without making it a build
+ # dependency
+ import jinja2
+ import jinja2.ext
+ from salt.utils.jinja import SaltCacheLoader as JinjaSaltCacheLoader
+
opts = context['opts']
env = context['env']
loader = None
--
1.7.10

@ -11,7 +11,7 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: salt
Version: 0.13.1
Version: 0.13.2
Release: 1%{?dist}
Summary: A parallel remote execution system
@ -104,8 +104,6 @@ BuildRequires: systemd-units
%endif
#Requires: MySQL-python libvirt-python yum
%description
Salt is a distributed remote execution system used to execute commands and
query data. It was developed in order to bring the best solutions found in
@ -311,6 +309,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Wed Mar 13 2013 Clint Savage <herlo1@gmail.com> - 0.13.2-1
- Update to upstream patch release 0.13.2
* Fri Feb 15 2013 Clint Savage <herlo1@gmail.com> - 0.13.1-1
- Update to upstream patch release 0.13.1
- Add unittest support

@ -1 +1 @@
3919ee94e6c32d182a6e410065ba888d salt-0.13.1.tar.gz
b18ab3d0f4fcb79ab8552b8dbcd5a002 salt-0.13.2.tar.gz

Loading…
Cancel
Save