From 7b32b34bb11e11fc206565568f5d570b4dc266a7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 7 Mar 2012 15:53:34 +0100 Subject: [PATCH] kyua: added patch from jmmv@ to fix some test cases. --- srcpkgs/kyua/patches/patch.diff | 16 ++++++++++++++++ srcpkgs/kyua/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/kyua/patches/patch.diff diff --git a/srcpkgs/kyua/patches/patch.diff b/srcpkgs/kyua/patches/patch.diff new file mode 100644 index 00000000000..3cac7728afe --- /dev/null +++ b/srcpkgs/kyua/patches/patch.diff @@ -0,0 +1,16 @@ +diff --git a/utils/fs/operations.cpp b/utils/fs/operations.cpp +index a4461c1..bdc23b9 100644 +--- utils/fs/operations.cpp ++++ utils/fs/operations.cpp +@@ -356,7 +356,10 @@ recursive_cleanup(const fs::path& current_path, const struct ::stat& parent_sb) + { + bool ok = true; + +- ok &= try_unprotect(current_path); ++ // Weakening the protections of a file is just a best-effort operation. ++ // If this fails, we may still be able to do the file/directory removal ++ // later on, so ignore any failures from try_unprotect(). ++ (void)try_unprotect(current_path); + + const optional< struct ::stat > current_sb = try_stat(current_path); + if (!current_sb) diff --git a/srcpkgs/kyua/template b/srcpkgs/kyua/template index c05b1178594..712c22aba3a 100644 --- a/srcpkgs/kyua/template +++ b/srcpkgs/kyua/template @@ -1,7 +1,7 @@ # Template file for 'kyua' pkgname=kyua version=0.3 -revision=1 +revision=2 wrksrc="kyua-cli-${version}" homepage="http://code.google.com/p/kyua" distfiles="https://kyua.googlecode.com/files/kyua-cli-$version.tar.gz"