tags 378028 + patch thanks David Liontooth <[EMAIL PROTECTED]> writes:
> My system is currently working fine with dchroot 0.13, and it appears I > need to understand in some detail how schroot and dchroot works in order > to make things work with the new packages. I'll stick with 0.13 until > new and working shell scripts for schroot are available. Please could you try the attached patch? You can build and install like this: apt-get source schroot cd schroot-0.99.2 patch -p0 < /tmp/schroot-dchroot-compat-command.patch dpkg-buildpackage -rfakeroot -us -uc sudo dpkg -i ../dchroot_0.99.2-2_amd64.deb This should now replicate the dchroot 0.13 option syntax. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please sign and encrypt your mail.
Index: dchroot/dchroot-options.cc
===================================================================
--- dchroot/dchroot-options.cc (revision 844)
+++ dchroot/dchroot-options.cc (working copy)
@@ -77,10 +77,6 @@
if (vm.count("preserve-environment"))
this->preserve = true;
- // dchroot only allows one command.
- if (this->command.size() > 1)
- throw opt::validation_error(_("Only one command may be specified"));
-
if (this->quiet && this->verbose)
{
sbuild::log_warning()
Index: dchroot/dchroot-session.cc
===================================================================
--- dchroot/dchroot-session.cc (revision 844)
+++ dchroot/dchroot-session.cc (working copy)
@@ -93,7 +93,7 @@
std::string& file,
string_list& command) const
{
- std::string programstring = command[0];
+ std::string programstring = sbuild::string_list_to_string(command, " ");
command.clear();
command.push_back(get_shell());
pgp4BZjQEjYDa.pgp
Description: PGP signature

