chiark
/
gitweb
/
~ianmdlvl
/
dsa-metapackages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also accept empty/no suffix in chroot name
[dsa-metapackages.git]
/
apt-in-chroot
diff --git
a/apt-in-chroot
b/apt-in-chroot
index ed052a3b72cfe11002e5a689d008169de600e539..cdf8395cf7d6afd400d427d6430d9bf0711c1362 100755
(executable)
--- a/
apt-in-chroot
+++ b/
apt-in-chroot
@@
-58,7
+58,7
@@
if [ -x /usr/bin/dchroot ] ; then
elif [ -x /usr/bin/schroot ] ; then
chroots=$(schroot -l | awk -F":" '{print $2}' | grep -- '-dchroot$' )
method=schroot
elif [ -x /usr/bin/schroot ] ; then
chroots=$(schroot -l | awk -F":" '{print $2}' | grep -- '-dchroot$' )
method=schroot
- suffix
="-dchroot
"
+ suffix
[${#suffix[*]}]="
"
suffix[${#suffix[*]}]="-dchroot"
suffix[${#suffix[*]}]="-$(dpkg --print-architecture)-dchroot"
else
suffix[${#suffix[*]}]="-dchroot"
suffix[${#suffix[*]}]="-$(dpkg --print-architecture)-dchroot"
else