testing/libcypher-parser: Do not fail on rmmdir

As explained in the comments above the rmmdir, the rmmdir should not
fail if it is not empty. As I understand, the directories should only be
removed if they are empty.

Without this change, doc() and lintian() fails and break the build.
This commit is contained in:
Breno Leitao 2017-04-26 16:33:21 +00:00
parent ecca27aa7f
commit 4632a8136c

View File

@ -50,7 +50,7 @@ doc() {
fi
# remove if empty, ignore error (not empty)
rmdir "$pkgdir"/usr/share "$pkgdir"/usr 2>/dev/null
rmdir -f "$pkgdir"/usr/share "$pkgdir"/usr || true 2>/dev/null
return 0
}
@ -61,7 +61,7 @@ lint() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
# remove if empty, ignore error (not empty)
rmdir "$pkgdir"/usr/bin "$pkgdir"/usr 2>/dev/null
rmdir "$pkgdir"/usr/bin "$pkgdir"/usr || true 2>/dev/null
return 0
}
md5sums="c4c9a3bd9a97f4d97c1ffeb1ff19ebbe libcypher-parser-0.5.1.tar.gz"