- 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.

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/crudini?expand=0&rev=13
This commit is contained in:
Thomas Bechtold 2016-12-08 22:09:25 +00:00 committed by Git OBS Bridge
parent a28fdf910c
commit 82a5832a5b
5 changed files with 50 additions and 4 deletions

View File

@ -0,0 +1,29 @@
From 3c52bd938975f7c5b32d7009f109ccbd2328c16d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
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)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d493ae6600e54f9e0296b12d3adba99b88a439d8c4b2ebf9bc6f9c0613a03d7
size 22523

3
crudini-0.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:effdf8feb7efe252af87143c8756bbc69e2679afb6173083d38be02284385e5f
size 22955

View File

@ -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

View File

@ -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