projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copy the ssh_keys_users facter from Tor
[mirror/dsa-puppet.git]
/
modules
/
schroot
/
files
/
setup-all-dchroots
diff --git
a/modules/schroot/files/setup-all-dchroots
b/modules/schroot/files/setup-all-dchroots
index
a5e6094
..
2bf8a54
100755
(executable)
--- a/
modules/schroot/files/setup-all-dchroots
+++ b/
modules/schroot/files/setup-all-dchroots
@@
-28,15
+28,16
@@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# 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)
get_suites() {
case "$1" in
amd64|i386|armel|armhf)
- echo "sid buster stretch jessie"
+ echo "sid bullseye buster stretch jessie"
+ ;;
+ mips)
+ echo "buster stretch"
;;
*)
;;
*)
- echo "sid buster stretch"
+ echo "sid bu
llseye bu
ster stretch"
;;
esac
}
;;
esac
}
@@
-72,8
+73,10
@@
cat << EOF
usage: $0 [<options>] [buildd]
OPTIONS:
usage: $0 [<options>] [buildd]
OPTIONS:
+ -a <ARCH> limit to ARCH
-c write config only
-h this help
-c write config only
-h this help
+ -s <SUITE> limit to SUITE
EOF
}
EOF
}
@@
-85,9
+88,14
@@
EOF
# parse options
##########
EXTRAARGS=""
# parse options
##########
EXTRAARGS=""
-while getopts "cu" OPTION
+limitarch=""
+limitsuite=""
+while getopts "cha:s:" OPTION
do
case $OPTION in
do
case $OPTION in
+ a)
+ limitarch="$OPTARG"
+ ;;
c)
EXTRAARGS="$EXTRAARGS -c"
;;
c)
EXTRAARGS="$EXTRAARGS -c"
;;
@@
-95,6
+103,9
@@
do
usage
exit 0
;;
usage
exit 0
;;
+ s)
+ limitsuite="$OPTARG"
+ ;;
*)
usage >&2
exit 1
*)
usage >&2
exit 1
@@
-131,9
+142,9
@@
else
SILENT="chronic"
fi
SILENT="chronic"
fi
-
-# get list of archs based on DPKGARCH
+# get list of archs based on dpkg architecture
##########
##########
+DPKGARCH=$(dpkg --print-architecture)
archs="$DPKGARCH"
case "$DPKGARCH" in
amd64)
archs="$DPKGARCH"
case "$DPKGARCH" in
amd64)
@@
-164,7
+175,9
@@
esac
err=0
for a in $archs; do
err=0
for a in $archs; do
+ [ "$limitarch" != "" ] && [ "$limitarch" != "$a" ] && continue
for s in `get_suites "$a"`; do
for s in `get_suites "$a"`; do
+ [ "$limitsuite" != "" ] && [ "$limitsuite" != "$s" ] && continue
if ! do_one "$a" "$s"; then
err=1
echo >&2
if ! do_one "$a" "$s"; then
err=1
echo >&2