diff --git a/3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch b/3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch new file mode 100644 index 0000000..3c5b4c3 --- /dev/null +++ b/3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch @@ -0,0 +1,29 @@ +From 3c52bd938975f7c5b32d7009f109ccbd2328c16d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?P=C3=A1draig=20Brady?= +Date: Fri, 2 Dec 2016 17:19:55 +0000 +Subject: [PATCH] replace a symlink target rather than the symlink itself + +* NEWS: Mention the fix. +* crudini: Get the realpath() to replace. +* tests/test.sh: Add a test case. + +Fixes issue #43 +--- + NEWS | 4 +++- + crudini | 2 +- + tests/test.sh | 6 ++++++ + 3 files changed, 10 insertions(+), 2 deletions(-) + +Index: crudini-0.8/crudini +=================================================================== +--- crudini-0.8.orig/crudini ++++ crudini-0.8/crudini +@@ -515,7 +515,7 @@ Options: + pass + + if not self.output: +- self.output = self.cfgfile ++ self.output = os.path.realpath(self.cfgfile) + + if self.cfgfile is None: + self.usage(1) diff --git a/crudini-0.7.tar.gz b/crudini-0.7.tar.gz deleted file mode 100644 index 1573d05..0000000 --- a/crudini-0.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d493ae6600e54f9e0296b12d3adba99b88a439d8c4b2ebf9bc6f9c0613a03d7 -size 22523 diff --git a/crudini-0.8.tar.gz b/crudini-0.8.tar.gz new file mode 100644 index 0000000..d032537 --- /dev/null +++ b/crudini-0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:effdf8feb7efe252af87143c8756bbc69e2679afb6173083d38be02284385e5f +size 22955 diff --git a/crudini.changes b/crudini.changes index 8ad1c89..e641554 100644 --- a/crudini.changes +++ b/crudini.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Dec 8 22:03:01 UTC 2016 - tbechtold@suse.com + +- update to 0.8: + * maint: improve documentation for fsync() calls + * use sha256 rather than md5 to checksum file contents + * maint: remove stale comment + * document --help and --version + * fix spelling in --help and man page + * fix processing of lines starting with "rem" + * bump version for release +- add 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch . + Fixes symlink handling when writing linked files. + ------------------------------------------------------------------- Thu Feb 18 16:44:06 UTC 2016 - aplanas@suse.com diff --git a/crudini.spec b/crudini.spec index 894b90d..8b81a25 100644 --- a/crudini.spec +++ b/crudini.spec @@ -17,13 +17,15 @@ Name: crudini -Version: 0.7 +Version: 0.8 Release: 0 Summary: CRUD for .ini files License: GPL-2.0 Group: System/Base Url: https://github.com/pixelb/crudini/releases Source: %{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch -- https://github.com/pixelb/crudini/commit/3c52bd938975f7c5b32d7009f109ccbd2328c16d +Patch1: 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: python-iniparse @@ -32,6 +34,7 @@ A utility for manipulating ini files. %prep %setup -q +%patch1 -p1 %build