From 49f7c90c52341e0a0666e578f6ca09c7d2d5d55b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 16 Aug 2018 10:07:17 +0200 Subject: [PATCH] setup-all-dchroots: move DPKGARCH to where it's used --- modules/schroot/files/setup-all-dchroots | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/schroot/files/setup-all-dchroots b/modules/schroot/files/setup-all-dchroots index a5e609422..7ff84b40c 100755 --- a/modules/schroot/files/setup-all-dchroots +++ b/modules/schroot/files/setup-all-dchroots @@ -28,8 +28,6 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. -DPKGARCH=$(dpkg --print-architecture) - get_suites() { case "$1" in amd64|i386|armel|armhf) @@ -131,10 +129,10 @@ else SILENT="chronic" fi - -# get list of archs based on DPKGARCH +# get list of archs based on dpkg architecture ########## -archs="$DPKGARCH" +DPKGARCH=$(dpkg --print-architecture) +archs="DPKGARCH" case "$DPKGARCH" in amd64) archs="$archs i386" -- 2.20.1