forked from ungleich-public/cdist
DRY: Remove default parameter value handeling in __apt_source
This commit is contained in:
parent
6610a9c384
commit
17afb5f5ad
2 changed files with 3 additions and 5 deletions
|
@ -27,11 +27,9 @@ if [ -f "$__object/parameter/distribution" ]; then
|
|||
else
|
||||
distribution="$(cat "$__global/explorer/lsb_codename")"
|
||||
fi
|
||||
if [ -f "$__object/parameter/component" ]; then
|
||||
component="$(cat "$__object/parameter/component")"
|
||||
else
|
||||
component=""
|
||||
fi
|
||||
|
||||
component="$(cat "$__object/parameter/component")"
|
||||
|
||||
if [ -f "$__object/parameter/arch" ]; then
|
||||
forcedarch="[arch=$(cat "$__object/parameter/arch")]"
|
||||
else
|
||||
|
|
0
cdist/conf/type/__apt_source/parameter/default/component
Normal file
0
cdist/conf/type/__apt_source/parameter/default/component
Normal file
Loading…
Reference in a new issue