[ostree] ostbuild: Make --debug-shell not exit immediately



commit 492f0777f2d1d5c307312c42ec6d3f651fa2886b
Author: Colin Walters <walters verbum org>
Date:   Mon Jan 9 11:10:10 2012 -0500

    ostbuild: Make --debug-shell not exit immediately
    
    We need to keep stdin open.

 .../pyostbuild/builtin_chroot_compile_one.py       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_chroot_compile_one.py b/src/ostbuild/pyostbuild/builtin_chroot_compile_one.py
index 34a8d15..cdb2e37 100755
--- a/src/ostbuild/pyostbuild/builtin_chroot_compile_one.py
+++ b/src/ostbuild/pyostbuild/builtin_chroot_compile_one.py
@@ -145,7 +145,7 @@ class OstbuildChrootCompileOne(builtins.Builtin):
             child_args.extend(rest_args)
         env_copy = dict(BUILD_ENV)
         env_copy['PWD'] = chroot_sourcedir
-        run_sync(child_args, env=env_copy)
+        run_sync(child_args, env=env_copy, keep_stdin=args.debug_shell)
         
         if workdir_is_tmp:
             shutil.rmtree(workdir)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]