Package: sbuild Version: 0.85.0 Severity: wishlist X-Debbugs-Cc: richard.lewis.deb...@googlemail.com
Dear Maintainer, sbuild is really great. I have a small feature request to make it easier to navigate the autopkgtest options: In sbuild.conf i use $autopkgtest_root_args = ''; $autopkgtest_opts = [ '--', 'schroot', '%r-%a-sbuild' ]; but sometimes i need to lxc because schroot isnt enough of a container, or i need to match what happens on salsa And now i need to use sudo, i have to remember to uncomment the following two lines $autopkgtest_root_args = 'sudo'; $autopkgtest_opts = [ '--', 'lxc', 'autopkgtest-%r' ]; and then recomment after... -- I know i can pass these on the command line, but i can never remember the syntax for each. Could these variables be set via via hashes, so i could easily choose at run-time whether to use lxc or schroot (or unshare etc): I was thinking you could support a syntax like: $autopkgtest_backend="schroot" # default backend # bash of backend => "value to use" $autopkgtest_root_args_hash = { "schroot" => "", "lxc" => "sudo", "unshare"=>"run0" }; # bash of backend => [args,to,use] $autopkgtest_opts_hash = { "lxc" => [ '--', 'lxc', 'autopkgtest-%r' ], "schroot" => [ '--', 'schroot', '%r-%a-sbuild' ], } and then doing --autopkgtests-backend=X would simply do call $autopkgtest_root_args=$autopkgtest_root_args_hash[X]; $autopkgtest_opts=$autopkgtest_opts_args_hash[X]; would that be possible?