mk-sbuild: Name cross chroots after the build architecture and target

(LP: #1087194)
This commit is contained in:
Stefano Rivera 2013-01-12 15:26:08 +02:00
parent a3bd35bd0c
commit 957a73772d
2 changed files with 7 additions and 1 deletions

2
debian/changelog vendored
View File

@ -23,6 +23,8 @@ ubuntu-dev-tools (0.146) UNRELEASED; urgency=low
Kitterman (LP: #1088010)
* seeded-in-ubuntu: Clarify that "not seeded" binary packages may not exist
(LP: #1029620)
* mk-sbuild: Name cross chroots after the build architecture and target
(LP: #1087194)
-- Stefano Rivera <stefanor@ubuntu.com> Sat, 12 Jan 2013 14:33:25 +0200

View File

@ -314,7 +314,11 @@ if [ -z "$CHROOT_ARCH" ]; then
CHROOT_ARCH="$HOST_ARCH"
fi
CHROOT_NAME="${name}-${CHROOT_ARCH}"
if [ -z "$TARGET_ARCH" ]; then
CHROOT_NAME="${name}-${CHROOT_ARCH}"
else
CHROOT_NAME="${name}-cross-${CHROOT_ARCH}-${TARGET_ARCH}"
fi
if [ -z "$synonym" ]; then
CHROOT_SYNONYM=""