Skip to content

Commit f1bd4ec

Browse files
committed
[IMP] adapt documentation for new install script
closes #9544 X-original-commit: 109c827 Related: odoo/odoo#167350 Signed-off-by: Xavier Dollé (xdo) <[email protected]>
1 parent 05cd6af commit f1bd4ec

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: content/administration/on_premise/source.rst

+9-5
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,22 @@ Dependencies
277277

278278
.. tab:: Debian/Ubuntu
279279

280-
For Debian-based systems, the packages are listed in the `debian/control
281-
<{GITHUB_PATH}/debian/control>`_ file of the Odoo sources.
282-
283280
On Debian/Ubuntu, the following commands should install the required packages:
284281

285282
.. code-block:: console
286283
287-
$ cd /CommunityPath
288-
$ sed -n -e '/^Depends:/,/^Pre/ s/ python3-\(.*\),/python3-\1/p' debian/control | sudo xargs apt-get install -y
284+
$ cd odoo #CommunityPath
285+
$ sudo ./setup/debinstall.sh
286+
287+
The `setup/debinstall.sh` script will parse the `debian/control
288+
<{GITHUB_PATH}/debian/control>`_ file and install the found packages.
289289

290290
.. tab:: Install with pip
291291

292+
.. warning::
293+
Using pip may lead to security issues and broken dependencies; only do this if you
294+
know what you are doing.
295+
292296
As some of the Python packages need a compilation step, they require system libraries to
293297
be installed.
294298

Diff for: tests/checkers/redirect_rules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
REDIRECT_RULE_RE = re.compile(r'^[ \t]*([\w\-/]+\.rst)[ \t]+([\w\-/]+\.rst)[ \t]*(?:#.*)?$')
8-
REDIRECTS_FILE_VERSION_RE = re.compile('(?:redirects/)?(?:saas-)?(\d\d\.\d)\.txt')
8+
REDIRECTS_FILE_VERSION_RE = re.compile(r'(?:redirects/)?(?:saas-)?(\d\d\.\d)\.txt')
99

1010

1111
@sphinxlint.checker('.txt')

0 commit comments

Comments
 (0)