deb-pkg: move setting debarch for a separate function
authorRiku Voipio <riku.voipio@linaro.org>
Thu, 16 Apr 2015 13:42:46 +0000 (16:42 +0300)
committerMichal Marek <mmarek@suse.cz>
Mon, 27 Apr 2015 12:16:35 +0000 (14:16 +0200)
commitdca0c0246fb739bccdd19ff2bfd0f02ccffdb07c
tree827e9c7890a2e94a3b89620475ca96e05fdf595b
parent92f43c452c5313a7914eab2b08d966a6c5007baa
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: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb
This page took 0.026302 seconds and 5 git commands to generate.