Removed patch 0001-Fix-errors-with-Puppet-4.patch

Fixes: bz#1242676
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
epel9
Gael Chamoulaud 10 years ago
parent 192c290a26
commit 4952d3545f

13
.gitignore vendored

@ -1,7 +1,6 @@
/hiera-1.0.0rc3.tar.gz *~
/hiera-1.0.0.tar.gz *.rpm
/hiera-1.2.1.tar.gz *.tar.gz
/hiera-1.3.1.tar.gz *.tar.gz.asc
/hiera-1.3.2.tar.gz /hiera-*/
/hiera-1.3.3.tar.gz /.build*.log
/hiera-1.3.4.tar.gz

@ -1,26 +0,0 @@
From 376cbbe7cf344f395087dfb04c509bff47b105a2 Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar@fedoraproject.org>
Date: Mon, 18 May 2015 19:48:04 +0200
Subject: [PATCH] Fix errors with Puppet 4
Patch provided by Lukas Bezdicka
---
lib/hiera/config.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/hiera/config.rb b/lib/hiera/config.rb
index d29da7d..fe854cb 100644
--- a/lib/hiera/config.rb
+++ b/lib/hiera/config.rb
@@ -67,7 +67,7 @@ class Hiera::Config
#
# @return [Object] return value of {YAML.load_file}
def yaml_load_file(source)
- YAML.load_file(source)
+ YAML.unsafe_load_file(source)
end
private :yaml_load_file
--
2.4.0

@ -12,14 +12,13 @@
Name: hiera Name: hiera
Version: 1.3.4 Version: 1.3.4
Release: 3%{?dist} Release: 4%{?dist}
Summary: A simple hierarchical database supporting plugin data sources Summary: A simple hierarchical database supporting plugin data sources
Group: System Environment/Base Group: System Environment/Base
License: ASL 2.0 License: ASL 2.0
URL: http://projects.puppetlabs.com/projects/%{name}/ URL: http://projects.puppetlabs.com/projects/%{name}/
Source0: http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz Source0: http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
Patch0: 0001-Fix-errors-with-Puppet-4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
%if 0%{?with_checks} %if 0%{?with_checks}
@ -43,7 +42,6 @@ A simple hierarchical database supporting plugin data sources.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .puppet4
%build %build
# Nothing to build # Nothing to build
@ -78,6 +76,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Thu Jul 30 2015 Gaël Chamoulaud <gchamoul@redhat.com> - 1.3.4-4
- Removed 0001-Fix-errors-with-Puppet-4.patch
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save