mirror of
https://github.com/lxc/lxc-templates.git
synced 2026-09-19 06:31:31 +00:00
lxc-debian: Use distro_codename in write_sourceslist
The variable `distro_codename` (introduced in previous commit) is a better fit than `release` for places where we want to match a codename. Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
This commit is contained in:
committed by
Arnaud Rebillout
parent
c352d0c180
commit
0d0ae9f09e
@@ -240,7 +240,7 @@ write_sourceslist()
|
|||||||
if [ "$mainonly" = 1 ]; then
|
if [ "$mainonly" = 1 ]; then
|
||||||
non_main=''
|
non_main=''
|
||||||
else
|
else
|
||||||
case "$release" in
|
case "$distro_codename" in
|
||||||
wheezy|jessie|stretch|buster|bullseye)
|
wheezy|jessie|stretch|buster|bullseye)
|
||||||
non_main=' contrib non-free'
|
non_main=' contrib non-free'
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user