skonfig / base

explorer and types for general use
GNU General Public License v3.0
4 stars 4 forks source link

Clean up missing variables issue in __apt_source #65

Closed fancsali closed 2 years ago

fancsali commented 2 years ago

Fixing the problem in the manifest and the template that caused the issues, hence undoing the previous fix.

Context

Original implementation by @fancsali failed to export appropriate variables (signed_by and forcedarch) from the manifest to the template, so the template was missing those every time - whether the actual parameters have been provided in the first place or not.

The missing or unset variables in the template caused an issue anyway, as the template is coded in a defensive way, and forces variables to be set by calling set -u.

The immediate issue of the template failing was addressed in 2277ec5 by @sideeffect42 when merging the code.

However, I discovered the original issue of the parameters never making through (even if set) recently - which essentially made those completely ignored and useless.

Fix approach

Reverting the fix (2277ec5), and re-doing the original solution properly: