kyua: added patch from jmmv@ to fix some test cases.

This commit is contained in:
Juan RP 2012-03-07 15:53:34 +01:00
parent f418db9e75
commit 7b32b34bb1
2 changed files with 17 additions and 1 deletions

View file

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

View file

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