Skip to content

Commit bc00ae9

Browse files
authored
fix(hg): add branches for noble (#428)
1 parent 8c7d314 commit bc00ae9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

salt/hg/files/hg/wsgi/python.wsgi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ from mercurial import encoding
33

44
CONFIG = '/srv/hg/repos.conf'
55
encoding.encoding = 'utf-8'
6+
{% if grains["oscodename"] == "noble" %}
67
application = hgwebdir(CONFIG.encode())
8+
{% else %}
9+
application = hgwebdir(CONFIG)
10+
{% endif %}
11+

salt/hg/init.sls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ hg-deps:
22
pkg.installed:
33
- pkgs:
44
- mercurial
5+
{% if grains["oscodename"] == ["noble"] %}
56
- python3-pygments
7+
{% endif %}
68

79
svn-deps:
810
pkg.installed:
@@ -159,7 +161,7 @@ apache2:
159161
pkg.installed:
160162
- pkgs:
161163
- apache2
162-
- libapache2-mod-wsgi-py3
164+
- libapache2-mod-wsgi{% if grains["oscodename"] == ["noble"] %}-py3{% endif %}
163165
service.running:
164166
- enable: True
165167
- reload: True

0 commit comments

Comments
 (0)