Skip to content

Commit e7917e2

Browse files
authored
Merge pull request #21659 from unoplatform/dev/jela/improve-apt
ci: Disable man to improve build perf
2 parents b1ad4a9 + b01c8a6 commit e7917e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build/ci/templates/linux-install-deps.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
steps:
2+
3+
- bash: |
4+
# Used to improve the install performance, since we don't need man
5+
set -e
6+
# Divert /usr/bin/mandb to avoid package ownership conflicts
7+
sudo dpkg-divert --local --rename --add /usr/bin/mandb
8+
# Replace with a no-op
9+
echo '#!/bin/sh' | sudo tee /usr/bin/mandb >/dev/null
10+
echo 'exit 0' | sudo tee -a /usr/bin/mandb >/dev/null
11+
sudo chmod 755 /usr/bin/mandb
12+
displayName: Disable man-db
213
314
- bash: |
415
sudo apt-get update

0 commit comments

Comments
 (0)