kyua: added patch from jmmv@ to fix some test cases.
This commit is contained in:
16
srcpkgs/kyua/patches/patch.diff
Normal file
16
srcpkgs/kyua/patches/patch.diff
Normal 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)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'kyua'
|
# Template file for 'kyua'
|
||||||
pkgname=kyua
|
pkgname=kyua
|
||||||
version=0.3
|
version=0.3
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="kyua-cli-${version}"
|
wrksrc="kyua-cli-${version}"
|
||||||
homepage="http://code.google.com/p/kyua"
|
homepage="http://code.google.com/p/kyua"
|
||||||
distfiles="https://kyua.googlecode.com/files/kyua-cli-$version.tar.gz"
|
distfiles="https://kyua.googlecode.com/files/kyua-cli-$version.tar.gz"
|
||||||
|
|||||||
Reference in New Issue
Block a user