Skip to content
Snippets Groups Projects
Commit 4632a813 authored by Breno Leitao's avatar Breno Leitao
Browse files

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.
parent ecca27aa
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ doc() { ...@@ -50,7 +50,7 @@ doc() {
fi fi
# remove if empty, ignore error (not empty) # 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 return 0
} }
...@@ -61,7 +61,7 @@ lint() { ...@@ -61,7 +61,7 @@ lint() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
# remove if empty, ignore error (not empty) # 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 return 0
} }
md5sums="c4c9a3bd9a97f4d97c1ffeb1ff19ebbe libcypher-parser-0.5.1.tar.gz" md5sums="c4c9a3bd9a97f4d97c1ffeb1ff19ebbe libcypher-parser-0.5.1.tar.gz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment