# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
chroots=$(dchroot -l 2>&1 | awk -F": " '{print $2}' | tr ' ' '\n')
method=dchroot
suffix[${#suffix[*]}]="_$(dpkg --print-architecture)"
chroots=$(dchroot -l 2>&1 | awk -F": " '{print $2}' | tr ' ' '\n')
method=dchroot
suffix[${#suffix[*]}]="_$(dpkg --print-architecture)"
elif [ -x /usr/bin/schroot ] ; then
chroots=$(schroot -l | awk -F":" '{print $2}' | grep -- '-dchroot$' )
method=schroot
suffix[${#suffix[*]}]=""
suffix[${#suffix[*]}]="-dchroot"
suffix[${#suffix[*]}]="-$(dpkg --print-architecture)-dchroot"
elif [ -x /usr/bin/schroot ] ; then
chroots=$(schroot -l | awk -F":" '{print $2}' | grep -- '-dchroot$' )
method=schroot
suffix[${#suffix[*]}]=""
suffix[${#suffix[*]}]="-dchroot"
suffix[${#suffix[*]}]="-$(dpkg --print-architecture)-dchroot"