Skip to content
Commit dca0c024 authored by Riku Voipio's avatar Riku Voipio Committed by Michal Marek
Browse files

deb-pkg: move setting debarch for a separate function



create_package() function tries to resolve used architecture
for everry package. Split the setting the architecture to a
new function, set_debarch(), called once on startup.

This allows using debarch from other parts of script as
needed.

v2: Follow Michals suggestion on setting variables at
top scope and also setting the fallback $debarch in the
new function

Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 92f43c45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment