mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
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:
parent
ecca27aa7f
commit
4632a8136c
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user